wok-6.x rev 13224

get-wifi-firmware: fix get-ipw2?00-firmware
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 12 15:55:25 2012 +0200 (2012-08-12)
parents 36bf70b8fdf9
children 19fbe1c329d0
files dev86/stuff/com2exe get-wifi-firmware/stuff/get-wifi-firmware
line diff
     1.1 --- a/dev86/stuff/com2exe	Sat Aug 11 22:53:31 2012 +0100
     1.2 +++ b/dev86/stuff/com2exe	Sun Aug 12 15:55:25 2012 +0200
     1.3 @@ -4,7 +4,7 @@
     1.4  S=$(stat -c %s $1)
     1.5  P=$((($S+511)/512))
     1.6  E=$((4096-(32*$P)))
     1.7 -for i in 0x5A4D $(($S%512)) $P 0 2 $E $E -16 -2 0 256 -16 28 0 0 0
     1.8 +for i in 0x5A4D $(($S%512)) $P 0 2 $E $E $((($P/128)*256-16)) -2 0 256 -16 28 0 0 0
     1.9  do printf '\\\\x%02X\\\\x%02X' $(($i&255)) $((($i>>8)&255)) | xargs echo -en
    1.10  done
    1.11  cat $1
     2.1 --- a/get-wifi-firmware/stuff/get-wifi-firmware	Sat Aug 11 22:53:31 2012 +0100
     2.2 +++ b/get-wifi-firmware/stuff/get-wifi-firmware	Sun Aug 12 15:55:25 2012 +0200
     2.3 @@ -52,13 +52,13 @@
     2.4  	;;
     2.5  ipw2100)
     2.6  	VERSION=$(wget -O - http://$MODULE.sourceforge.net/firmware.php?fid=2 |\
     2.7 -		sed '/$MODULE-fw/!d;s/.*fw-\(.*\).tgz.*/\1/')
     2.8 +		sed "/$MODULE-fw/!d;s/.*fw-\(.*\).tgz.*/\1/")
     2.9  	WEB_SITE="http://$MODULE.sourceforge.net/"
    2.10  	WGET_URL="http://bughost.org/firmware/${MODULE}-fw-${VERSION}.tgz"
    2.11  	;;
    2.12  ipw2200)
    2.13  	VERSION=$(wget -O - http://$MODULE.sourceforge.net/firmware.php?fid=8 |\
    2.14 -		sed '/$MODULE-fw/!d;s/.*fw-\(.*\).tgz.*/\1/')
    2.15 +		sed "/$MODULE-fw/!d;s/.*fw-\(.*\).tgz.*/\1/")
    2.16  	WEB_SITE="http://$MODULE.sourceforge.net/"
    2.17  	WGET_URL="http://bughost.org/firmware/${MODULE}-fw-${VERSION}.tgz"
    2.18  	;;