mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-12 14:36:59 +03:00
init: Log enabled status only on boot
This commit is contained in:
@@ -47,7 +47,9 @@ function enabled
|
|||||||
if [ -n "$ZAPRET_CFG_SEC_NAME" ]; then
|
if [ -n "$ZAPRET_CFG_SEC_NAME" ]; then
|
||||||
run_on_boot=$( get_run_on_boot_option )
|
run_on_boot=$( get_run_on_boot_option )
|
||||||
if [ $run_on_boot != 1 ]; then
|
if [ $run_on_boot != 1 ]; then
|
||||||
logger -p notice -t ZAPRET "Service is blocked!"
|
if [ "$IS_RUN_ON_BOOT" = "1" ]; then
|
||||||
|
logger -p notice -t ZAPRET "Service is blocked!"
|
||||||
|
fi
|
||||||
return 61
|
return 61
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user