From 279967df99fb51dd576f22d249d21a13d41357c4 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Thu, 12 Apr 2018 17:48:32 +0200 Subject: [PATCH] zerotier: show message when section disabled Signed-off-by: Moritz Warning --- net/zerotier/files/zerotier.init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'