mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-10 21:46:50 +03:00
config: Skip run_on_boot option on restore default uci-config
This commit is contained in:
@@ -3,8 +3,15 @@
|
|||||||
|
|
||||||
. /opt/zapret/comfunc.sh
|
. /opt/zapret/comfunc.sh
|
||||||
|
|
||||||
|
cfg_run_on_boot="$( uci -q get zapret.config.run_on_boot )"
|
||||||
|
|
||||||
create_default_cfg
|
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
|
if [ "$1" = "sync" ]; then
|
||||||
# renew main config
|
# renew main config
|
||||||
/opt/zapret/sync_config.sh
|
/opt/zapret/sync_config.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user