From 4a2a982c8d8a7c1d34d716843be16137c5dfb5b1 Mon Sep 17 00:00:00 2001 From: juewuy Date: Tue, 27 Jan 2026 19:32:02 +0800 Subject: [PATCH] =?UTF-8?q?~=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E5=B0=8F?= =?UTF-8?q?=E7=B1=B3=E8=AE=BE=E5=A4=87=E8=87=AA=E5=90=AF=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/starts/snapshot_init.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/starts/snapshot_init.sh b/scripts/starts/snapshot_init.sh index 9c6f2bcd..da012fa1 100644 --- a/scripts/starts/snapshot_init.sh +++ b/scripts/starts/snapshot_init.sh @@ -2,6 +2,10 @@ # Copyright (C) Juewuy CRASHDIR="$(uci get firewall.ShellCrash.path | sed 's/\/starts.*//')" +#防止提前自启 +/etc/init.d/shellcrash disable +crontab -l | grep -v 'start_legacy_wd.sh shellcrash' | crontab - +#防止usb未加载 i=0 while [ ! -f "$CRASHDIR/configs/ShellCrash.cfg" ]; do [ $i -gt 20 ] && exit 1