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

#!/bin/sh
#
# install_intersil_firmware
#
# This script tries to download and install the firmware needed to run
# WLAN cards using the ACX100 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 /usr/lib/hotplug/firmware || mkdir -p /usr/lib/hotplug/firmware

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

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

unzip /var/lib/YaST2/you/files/Wireless/dwl520+/Driver/dwl520+_drivers_307.zip >/dev/null || die
mv Drivers/Win2000/WLANGEN.bin /usr/lib/hotplug/firmware/WLANGEN.BIN || die
mv Drivers/Win2000/RADIO0d.BIN /usr/lib/hotplug/firmware/ || die
mv Drivers/Win2000/RADIO11.BIN /usr/lib/hotplug/firmware/ || die

popd >/dev/null
rm -rf $TMPDIR

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

iD8DBQFAq3h9qE7a6JyACsoRAtDqAJ9qW0TGKlOE73gpNP4x5HKDtnsvXACfRl1b
WFjj+hoQSXx+bRp0XhAFV+Q=
=ILwU
-----END PGP SIGNATURE-----
