-----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 Intersil's PrismGT 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 curl)" && { echo "'curl' is not installed, aborting"; exit 1; }
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/intersil.XXXXXX) || exit 1

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

unzip /var/lib/YaST2/you/files/content/artem/artem000221/CC-54g_v1017.zip >/dev/null || die
mv ComCard\ 54g/Win2k/WLANDCB.arm /usr/lib/hotplug/firmware/isl3890 || die

popd >/dev/null
rm -rf $TMPDIR

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

iD8DBQFAq3itqE7a6JyACsoRAkeBAJ43MpFBm3w2nn5PsMwsAz+ZtGkPZACdGPym
iG9My8I3UUFRNCBCzbrwRY4=
=Shi+
-----END PGP SIGNATURE-----
