wok-current rev 777
get-b43-firmware: user should have to 'get-b43-firmware' to have wlan0 working out-of-the-box
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 12 17:27:29 2008 +0200 (2008-05-12) |
parents | 5fb91a028ec9 |
children | 82b6491f7573 |
files | get-b43-firmware/receipt get-b43-firmware/stuff/get-b43-firmware |
line diff
1.1 --- a/get-b43-firmware/receipt Mon May 12 15:01:05 2008 +0200 1.2 +++ b/get-b43-firmware/receipt Mon May 12 17:27:29 2008 +0200 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="get-b43-firmware" 1.7 -VERSION="1.00" 1.8 +VERSION="1.01" 1.9 CATEGORY="non-free" 1.10 SHORT_DESC="Get Broadcom b43 firmware." 1.11 MAINTAINER="pankso@slitaz.org"
2.1 --- a/get-b43-firmware/stuff/get-b43-firmware Mon May 12 15:01:05 2008 +0200 2.2 +++ b/get-b43-firmware/stuff/get-b43-firmware Mon May 12 17:27:29 2008 +0200 2.3 @@ -1,6 +1,8 @@ 2.4 #!/bin/sh 2.5 # 2.6 -# Get and install non-free Broadcom b43 firmware. 2.7 +# Get and install non-free Broadcom b43 firmware. The script wil also 2.8 +# install linux-wireless and b43-fwcutter if needed. Finaly try to 2.9 +# configure wlan0 interface. 2.10 # 2.11 2.12 DIR="broadcom-wl" 2.13 @@ -21,6 +23,16 @@ 2.14 exit 0 2.15 fi 2.16 2.17 +# We need the extractor. 2.18 +if [ ! -d /var/lib/tazpkg/installed/linux-wireless ]; then 2.19 + tazpkg get-install linux-wireless 2.20 +fi 2.21 + 2.22 +# We need the extractor. 2.23 +if [ ! -d /var/lib/tazpkg/installed/b43-fwcutter ]; then 2.24 + tazpkg get-install b43-fwcutter 2.25 +fi 2.26 + 2.27 # Install b43-fwcutter if needed 2.28 if [ -d /var/lib/tazpkg/installed/b43-fwcutter ]; then 2.29 tazpkg get-install b43-fwcutter 2.30 @@ -33,7 +45,7 @@ 2.31 cd $DIR-$VERSION/kmod 2.32 2.33 # Create pseudo package 2.34 -mkdir -p b43-firmware-$VERSION/fs/lib/firmware 2.35 +mkdir -p b43-firmware-$VERSION/fs/lib/firmware 2.36 b43-fwcutter -w "b43-firmware-$VERSION/fs/lib/firmware" wl_apsta.o 2.37 2.38 # Creat receipt 2.39 @@ -55,3 +67,13 @@ 2.40 # Clean 2.41 cd /tmp 2.42 rm -rf $TARBALL $DIR-$VERSION 2.43 + 2.44 +# Configure /etc/network.conf and start connexion 2.45 +sed -i s/'WIFI="no"'/'WIFI="yes"'/ /etc/network.conf 2.46 +. /etc/network.conf 2.47 + 2.48 +iwconfig $WIFI_INTERFACE essid $ESSID 2.49 +echo "Starting udhcpc client on: $WIFI_INTERFACE... " 2.50 +/sbin/udhcpc -b -i $WIFI_INTERFACE \ 2.51 + -p /var/run/udhcpc.$WIFI_INTERFACE.pid 2.52 +