From 9fed8ddd0d7277372d2f59e8b0d154d89a39b055 Mon Sep 17 00:00:00 2001 From: juewuy Date: Thu, 20 Nov 2025 19:26:04 +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 --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 7bf128d..4acece2 100644 --- a/install.sh +++ b/install.sh @@ -84,9 +84,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