Add Module Load Guard

Prevents redundant script loading by using a conditional flag to ensure the module is initialized only once.
This commit is contained in:
nested-universe
2025-12-31 14:30:33 +08:00
committed by GitHub
parent 258267436b
commit aedcfa7403

View File

@@ -1,6 +1,9 @@
#!/bin/sh
# Copyright (C) Juewuy
[ -n "$__IS_MODULE_9_UPGRADE_LOADED" ] && return
__IS_MODULE_9_UPGRADE_LOADED=1
. "$CRASHDIR"/libs/check_dir_avail.sh
. "$CRASHDIR"/libs/check_cpucore.sh
. "$CRASHDIR"/libs/web_get_bin.sh