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

#!/bin/sh
#
# This script tries to download and install the firmware needed to run
# WLAN cards using Intel PRO/Wireless 2100 (Centrino) 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/ipw2100.XXXXXX) || exit 1

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

. /etc/sysconfig/proxy
if test "$PROXY_ENABLED" != "no"; then
  if test -n "$HTTP_PROXY" ; then
    export http_proxy="$HTTP_PROXY"
  fi
fi

unzip /var/lib/YaST2/you/files/cd/00/00/08/09/80940_80940.zip >/dev/null || die
tar xzf ipw2100-fw-1.0.tgz || die
mv ipw2100-1.0.fw /usr/lib/hotplug/firmware/ipw2100-1.0.fw
mv LICENSE /usr/lib/hotplug/firmware/LICENSE.ipw2100
popd >/dev/null
rm -rf $TMPDIR

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

iD8DBQFAqfjlqE7a6JyACsoRAjiZAJ9pKbBpJ5wIACa0DRQ6WeqKpYcGFACfaNrW
15Lpt2lR+FVUOXSXGe6B4sw=
=6T5C
-----END PGP SIGNATURE-----
