zerotier: show message when section disabled
authorMoritz Warning <moritzwarning@web.de>
Thu, 12 Apr 2018 15:48:32 +0000 (17:48 +0200)
committerMoritz Warning <moritzwarning@web.de>
Thu, 12 Apr 2018 21:20:38 +0000 (23:20 +0200)
Signed-off-by: Moritz Warning <moritzwarning@web.de>
net/zerotier/files/zerotier.init

index 6d0f4f239dec776c40fc579b919ea2ee70f6e7f7..390dbd3127a8625f4d9ad579fceb9db90d10e499 100644 (file)
@@ -17,7 +17,10 @@ start_instance() {
        local port secret config_path
        local ARGS=""
 
-       section_enabled "$cfg" || return 1
+       if ! section_enabled "$cfg"; then
+               echo "disabled in config"
+               return 1
+       fi
 
        config_get config_path $cfg 'config_path'
        config_get_bool port $cfg 'port'