~脚本拆分后bug修复

This commit is contained in:
juewuy
2025-12-25 21:49:05 +08:00
parent a1835b7113
commit d1c9bccfbe
9 changed files with 247 additions and 17 deletions

View File

@@ -1,8 +1,10 @@
#!/bin/sh
# Copyright (C) Juewuy
#还原防火墙配置
. "$CRASHDIR"/configs/ShellCrash.cfg
#初始化目录
[ -z "$CRASHDIR" ] && CRASHDIR=$( cd $(dirname $0);cd ..;pwd)
. "$CRASHDIR"/libs/get_config.sh
. "$CRASHDIR"/libs/check_cmd.sh
. "$CRASHDIR"/starts/fw_getlanip.sh && getlanip #获取局域网host地址
#缺省值
[ -z "$common_ports" ] && common_ports='已开启'