OBS User unknown
2008-04-12 18:55:57 +00:00
committed by Git OBS Bridge
parent 9b74f99db4
commit 959721fb19
3 changed files with 16 additions and 7 deletions

View File

@@ -14,14 +14,13 @@ FIRMWARE1=broadcom-wl-4.150.10.5/driver/wl_apsta_mimo.o
URL2=http://downloads.openwrt.org/sources
FILE2=wl_apsta-3.130.20.0.o
test -z "$( type -p curl)" && { echo "'curl' is not installed, aborting"; exit 1; }
test -z "$( type -p b43-fwcutter)" && { echo "'b43-fwcutter' is not installed, aborting"; exit 1; }
test -z "$( type -p curl)" && { echo "'curl' is not installed, aborting. Please install 'curl' and try again."; exit 1; }
test -z "$( type -p b43-fwcutter)" && { echo "'b43-fwcutter' is not installed, aborting. Please install 'b43-fwcutter' and try again."; exit 1; }
test -d /lib/firmware || mkdir -p /lib/firmware
TMPDIR=$(mktemp -d /var/tmp/bcm.XXXXXX) || exit 1
pushd `pwd` >/dev/null
cd $TMPDIR
pushd $TMPDIR >/dev/null
echo "Downloading b43 firmware"
curl -# -f -o $FILE1 $URL1/$FILE1
@@ -30,7 +29,7 @@ if [ $? -eq 0 ];then
tar xjf $FILE1
b43-fwcutter -w /lib/firmware $FIRMWARE1
else
echo "Could not download b43 firmware."
echo "Could not download b43 firmware. Please look at /usr/share/doc/packages/b43-fwcutter/README."
fi
echo
@@ -40,7 +39,7 @@ if [ $? -eq 0 ];then
echo "Extracting b43legacy firmware"
b43-fwcutter -w /lib/firmware $FILE2
else
echo "Could not download b43legacy firmware."
echo "Could not download b43legacy firmware. Please look at /usr/share/doc/packages/b43-fwcutter/README."
fi
echo