diff --git a/home.admin/config.scripts/cl-plugin.cln-grpc.sh b/home.admin/config.scripts/cl-plugin.cln-grpc.sh index 1f9f3ad18..2c18d082c 100644 --- a/home.admin/config.scripts/cl-plugin.cln-grpc.sh +++ b/home.admin/config.scripts/cl-plugin.cln-grpc.sh @@ -7,6 +7,7 @@ if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ];then echo "Usage:" echo "cl-plugin.cln-grpc.sh install - called by build_sdcard.sh" echo "cl-plugin.cln-grpc.sh [on|off] " + echo "cl-plugin.cln-grpc.sh status " echo exit 1 fi @@ -44,6 +45,13 @@ if [ "$1" = install ]; then echo "# cl-plugin.cln-grpc.sh install --> done" exit 0 +elif [ "$1" = status ]; then + + portActive=$(nc -vz 127.0.0.1 $PORT 2>&1 | grep -c "succeeded") + echo "port=${PORT}" + echo "portActive=${portActive}" + exit 0 + elif [ "$1" = on ]; then buildGRPCplugin