|
@@ -15,13 +15,8 @@ start() {
|
|
|
exit 1
|
|
exit 1
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- # Load config values
|
|
|
|
|
- . /etc/functions.sh
|
|
|
|
|
- config_load client2server
|
|
|
|
|
-
|
|
|
|
|
- local enabled
|
|
|
|
|
- config_get_bool enabled general enabled 0
|
|
|
|
|
-
|
|
|
|
|
|
|
+ # Check if enabled (simple check without /etc/functions.sh)
|
|
|
|
|
+ local enabled=$(uci get client2server.general.enabled 2>/dev/null)
|
|
|
if [ "$enabled" = "0" ]; then
|
|
if [ "$enabled" = "0" ]; then
|
|
|
logger -t "$NAME" -p user.info "Disabled in config"
|
|
logger -t "$NAME" -p user.info "Disabled in config"
|
|
|
exit 0
|
|
exit 0
|