-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

#!/bin/sh
#
# install_intersil_firmware
#
# This script tries to install the firmware needed to run
# WLAN cards using the ACX111 chip.

die()
{
    popd
    test -d $TMPDIR
    rm -rf $TMPDIR
    exit 1
}

if [ "`id -u`" != "0" ]; then
 echo "error: You must be root to use this program!"
 exit 1
fi
test -z "$( type -p unzip)" && { echo "'unzip' is not installed, aborting"; exit 1; }
test -d /lib/firmware || mkdir -p /lib/firmware

TMPDIR=$(mktemp -d /var/tmp/acx111.XXXXXX) || exit 1

pushd `pwd` >/dev/null
cd $TMPDIR

unzip /var/lib/YaST2/you/files/showdownload.php\?id=1607 >/dev/null || die
mv Release\ Files/Driver/Win2000/FwRad16.bin /lib/firmware/TIACX111.BIN || die
mv Release\ Files/Driver/Win2000/FwRad17.bin /lib/firmware/ || die


popd >/dev/null
rm -rf $TMPDIR

exit 0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQFECB8EqE7a6JyACsoRAnqlAKCRW9LfSYdpPl1iyIIxBtsv2cGnRACg
jvmqEZQQHK6vane6S1TE33X2Yog=
=DblQ
-----END PGP SIGNATURE-----
