From: Moritz Warning Date: Thu, 12 Apr 2018 15:48:32 +0000 (+0200) Subject: zerotier: show message when section disabled X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=279967df99fb51dd576f22d249d21a13d41357c4;p=openwrt-packages.git zerotier: show message when section disabled Signed-off-by: Moritz Warning --- diff --git a/net/zerotier/files/zerotier.init b/net/zerotier/files/zerotier.init index 6d0f4f239..390dbd312 100644 --- a/net/zerotier/files/zerotier.init +++ b/net/zerotier/files/zerotier.init @@ -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'