config: Skip run_on_boot option on restore default uci-config

This commit is contained in:
remittor
2024-11-20 22:08:40 +03:00
parent 5f584bcf58
commit 51fc9739d8

View File

@@ -3,8 +3,15 @@
. /opt/zapret/comfunc.sh
cfg_run_on_boot="$( uci -q get zapret.config.run_on_boot )"
create_default_cfg
if [ "$cfg_run_on_boot" = "1" ]; then
uci set zapret.config.run_on_boot=1
uci commit
fi
if [ "$1" = "sync" ]; then
# renew main config
/opt/zapret/sync_config.sh