mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-06 08:38:50 +03:00
Rename all directories
This commit is contained in:
16
zapret2/renew-cfg.sh
Executable file
16
zapret2/renew-cfg.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
# Copyright (c) 2024 remittor
|
||||
|
||||
. /opt/zapret2/comfunc.sh
|
||||
|
||||
merge_cfg_with_def_values
|
||||
|
||||
CONFIGS_SYNC=0
|
||||
|
||||
[ ! -f "$ZAPRET_CONFIG" ] && CONFIGS_SYNC=1
|
||||
[ "$1" = "sync" ] && CONFIGS_SYNC=1
|
||||
|
||||
if [ "$CONFIGS_SYNC" = "1" ]; then
|
||||
# renew main config
|
||||
/opt/zapret2/sync_config.sh
|
||||
fi
|
||||
Reference in New Issue
Block a user