From 078d9bb9242e6c2f243ece88ec8e962170ed582b Mon Sep 17 00:00:00 2001 From: juewuy Date: Thu, 20 Nov 2025 19:26:21 +0800 Subject: [PATCH] =?UTF-8?q?~=E4=BC=98=E5=8C=96=E5=8D=8E=E7=A1=95=E5=AE=98?= =?UTF-8?q?=E6=96=B9=E5=9B=BA=E4=BB=B6=E5=AE=89=E8=A3=85=E6=97=B6=E7=9A=84?= =?UTF-8?q?U=E7=9B=98=E7=9B=AE=E5=BD=95=E9=80=89=E6=8B=A9=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/init.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/init.sh b/scripts/init.sh index 74e1d4d..d6fb889 100644 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -19,9 +19,9 @@ setdir() { } set_asus_dir() { echo -e "请选择U盘目录" - du -hL /tmp/mnt | awk '{print " "NR" "$2" "$1}' + du -hL /tmp/mnt | awk -F/ 'NF<=4' | awk '{print " "NR" "$2" "$1}' read -p "请输入相应数字 > " num - dir=$(du -hL /tmp/mnt | awk '{print $2}' | sed -n "$num"p) + dir=$(du -hL /tmp/mnt | awk -F/ 'NF<=4' | awk '{print $2}' | sed -n "$num"p) if [ ! -f "$dir/asusware.arm/etc/init.d/S50downloadmaster" ]; then echo -e "\033[31m未找到下载大师自启文件:$dir/asusware.arm/etc/init.d/S50downloadmaster,请检查设置!\033[0m" set_asus_dir