get-scripts rev 55

Update wifi firmware scripts
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 23 16:44:30 2016 +0200 (2016-04-23)
parents 2cdf3e534506
children b2587daaa4e6
files b43-firmware
line diff
     1.1 --- a/b43-firmware	Sat Apr 23 13:31:41 2016 +0200
     1.2 +++ b/b43-firmware	Sat Apr 23 16:44:30 2016 +0200
     1.3 @@ -93,7 +93,7 @@
     1.4  zd1211*)
     1.5  	WGET_URL="http://mirrors.kernel.org/debian/pool/non-free/z/zd1211-firmware"
     1.6  	VERSION=$(wget -O - $WGET_URL | sed -e '/zd1211-firmware/!d' \
     1.7 -	  -e '/all.deb/!d' -e 's/.*>zd1211-firmware_\(.*\)_all.deb.*/\1/')
     1.8 +	  -e '/all.deb/!d' -e 's/.*>zd1211-firmware_\(.*\)_all.deb.*/\1/;q')
     1.9  	SHORT_DESC="zd1211/zd1211rw Wireless Lan firmware."
    1.10  	WEB_SITE="http://packages.debian.org/etch/zd1211-firmware"
    1.11  	WGET_URL="$WGET_URL/zd1211-firmware_${VERSION}_all.deb"
    1.12 @@ -108,8 +108,9 @@
    1.13  esac
    1.14  
    1.15  case "$WGET_URL" in
    1.16 -ftp*|http*) ;;
    1.17 -*) WGET_URL="${WEB_SITE%/}/$WGET_URL"
    1.18 +ftp*|http*) 	;;
    1.19 +/*)		WGET_URL="$(echo $WEB_SITE | sed 's|\(^.*://[^/]*\).*|\1|')/$WGET_URL" ;;
    1.20 +*) 		WGET_URL="${WEB_SITE%/}/$WGET_URL" ;;
    1.21  esac
    1.22  
    1.23  # We need drivers, the extractor and tools.