wok-current rev 2171
get-*-firmware: fix error message
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 08 11:15:06 2009 +0000 (2009-02-08) |
parents | 1eb8b8b81037 |
children | aef2848d6394 |
files | get-dsl-firmware/stuff/get-dsl-firmware get-wifi-firmware/stuff/get-wifi-firmware |
line diff
1.1 --- a/get-dsl-firmware/stuff/get-dsl-firmware Sat Feb 07 20:58:54 2009 +0000 1.2 +++ b/get-dsl-firmware/stuff/get-dsl-firmware Sun Feb 08 11:15:06 2009 +0000 1.3 @@ -22,10 +22,9 @@ 1.4 URL="${WEB_SITE}ueagle-atm/non-free/ueagle-data-$VERSION.tar.gz" 1.5 ;; 1.6 *) echo "Unknown dsl driver. Please run one of the following commands:" 1.7 - cd $TOP 1.8 - rm -rf $TMP 1.9 for i in $(cd $(dirname $0); ls get-*-firmware); do 1.10 - [ "$i" = "get-dsl-firmware" ] && continue 1.11 + [ -L $i ] || continue 1.12 + [ "$(readlink $i)" = "get-dsl-firmware" ] || continue 1.13 echo " $i" 1.14 done 1.15 exit 1;;
2.1 --- a/get-wifi-firmware/stuff/get-wifi-firmware Sat Feb 07 20:58:54 2009 +0000 2.2 +++ b/get-wifi-firmware/stuff/get-wifi-firmware Sun Feb 08 11:15:06 2009 +0000 2.3 @@ -73,7 +73,8 @@ 2.4 ;; 2.5 *) echo "Unknown wifi driver. Please run one of the following commands:" 2.6 for i in $(cd $(dirname $0); ls get-*-firmware); do 2.7 - [ "$i" = "get-wifi-firmware" ] && continue 2.8 + [ -L $i ] || continue 2.9 + [ "$(readlink $i)" = "get-wifi-firmware" ] || continue 2.10 echo " $i" 2.11 done 2.12 exit 1;;