mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-03 13:03:56 +08:00
🎨 Sync 2026-10-01 18:52:09
This commit is contained in:
1 parent
e58f3357cb
commit
870d391c5d
12 files changed
+30
-45
No files matched your search
@@ -450,17 +450,16 @@ service_triggers() {
|
||||
procd_add_validation validate_section_natmap
|
||||
}
|
||||
|
||||
boot() {
|
||||
sleep $(uci -q get $NAME.@$GLOBALSECTION[0].boot_delay || echo 0)
|
||||
|
||||
network_flush_cache
|
||||
define_nic
|
||||
start "$@"
|
||||
}
|
||||
|
||||
start_service() {
|
||||
local sid="$1"
|
||||
|
||||
if [ -z "$DEF_WAN$DEF_WAN6" ]; then
|
||||
>&2 echo "$(basename $0): default WAN not detected. service startup will be delayed."
|
||||
sleep $(uci -q get $NAME.@$GLOBALSECTION[0].boot_delay || echo 0)
|
||||
network_flush_cache
|
||||
define_nic
|
||||
fi
|
||||
|
||||
config_foreach validate_section_global "$GLOBALSECTION" define_global || return $?
|
||||
[ "${GLOBAL_enable:=0}" == "0" ] && return 1
|
||||
|
||||
|
||||
Reference in new issue
Block a user