diff --git a/install.sh b/install.sh index e1fbf17..0f3c1e6 100644 --- a/install.sh +++ b/install.sh @@ -121,7 +121,7 @@ if [ -n "$systype" ];then } [ "$systype" = "asusrouter" ] && { $echo "\033[33m检测到当前设备为华硕固件,请选择安装方式\033[0m" - $echo " 1 基于USB设备安装(通用,须插入\033[31m任意\033[0mUSB设备)" + $echo " 1 基于USB设备安装(限23年9月之前固件,须插入\033[31m任意\033[0mUSB设备)" $echo " 2 基于自启脚本安装(仅支持梅林及部分官改固件)" $echo " 0 退出安装" echo ----------------------------------------------- diff --git a/scripts/init.sh b/scripts/init.sh index 6b77088..842389a 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -136,6 +136,9 @@ setconfig(){ systype=asusrouter #华硕固件 [ -f "/jffs/.asusrouter" ] && initdir='/jffs/.asusrouter' [ -d "/jffs/scripts" ] && initdir='/jffs/scripts/nat-start' + #华硕启用jffs + nvram set jffs2_scripts="1" + nvram commit } [ -f "/data/etc/crontabs/root" ] && systype=mi_snapshot #小米设备 [ -w "/var/mnt/cfg/firewall" ] && systype=ng_snapshot #NETGEAR设备 @@ -234,18 +237,18 @@ if [ -n "$profile" ];then echo "export CRASHDIR=\"$CRASHDIR\"" >> ~/.zshrc source ~/.zshrc >/dev/null 2>&1 } - #在允许的情况下创建/usr/bin/crash文件 - [ -w /usr/bin ] && { - cat > /usr/bin/crash </dev/null && { + cat > /usr/bin/crash <