mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 19:03:56 +08:00
🐤 Sync 2026-07-19 08:33:25
This commit is contained in:
1 parent
0c46bce85a
commit
7974ca67ae
4 files changed
+14
-3
No files matched your search
@@ -1,4 +1,4 @@
|
||||
|
||||
config global 'global'
|
||||
option enable '0'
|
||||
|
||||
option start_delay '90'
|
||||
@@ -3,7 +3,13 @@
|
||||
START=99
|
||||
|
||||
boot_func() {
|
||||
sleep 90
|
||||
config_load passwall_server
|
||||
config_get start_delay global start_delay 90
|
||||
case "$start_delay" in
|
||||
''|*[!0-9]*) start_delay=90 ;;
|
||||
*) [ "$start_delay" -le 600 ] 2>/dev/null || start_delay=90 ;;
|
||||
esac
|
||||
[ "$start_delay" -gt 0 ] && sleep "$start_delay"
|
||||
restart
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user