# HG changeset patch # User Eric Joseph-Alexandre # Date 1215015800 -7200 # Node ID 3c48e6f2d04a40a54f8ba1c43e2886217a298d0a # Parent 892930883f57e882fafbae05b791a9b9ed2256dc Add: b43legacy-firmware installer for old BROADCOM cards diff -r 892930883f57 -r 3c48e6f2d04a get-b43legacy-firmware/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-b43legacy-firmware/receipt Wed Jul 02 18:23:20 2008 +0200 @@ -0,0 +1,15 @@ +# SliTaz package receipt. + +PACKAGE="get-b43legacy-firmware" +VERSION="1.01" +CATEGORY="non-free" +SHORT_DESC="Get Broadcom b43lagacy firmware." +MAINTAINER="pankso@slitaz.org" +WEB_SITE="http://downloads.openwrt.org/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp stuff/$PACKAGE $fs/usr/bin +} diff -r 892930883f57 -r 3c48e6f2d04a get-b43legacy-firmware/stuff/get-b43legacy-firmware --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-b43legacy-firmware/stuff/get-b43legacy-firmware Wed Jul 02 18:23:20 2008 +0200 @@ -0,0 +1,77 @@ +#!/bin/sh +# +# Get and install non-free Broadcom b43 firmware. The script wil also +# install linux-wireless and b43-fwcutter if needed. Finaly try to +# configure wlan0 interface. +# + +DIR="wl_apsta" +VERSION=3.130.20.0 +TARBALL=$DIR-$VERSION.o +WGET_URL="http://downloads.openwrt.org/sources/$TARBALL" + +# Check if user is root to install. +if test $(id -u) != 0 ; then + echo -e "\nYou must be root to run `basename $0`." + echo -e "Please use 'su' and root password to become super-user.\n" + exit 0 +fi + +# Avoid reinstall +if [ -d /var/lib/tazpkg/installed/b43legacy-firmware ]; then + echo -e "\nb43legacy-firmware package is already installed.\n" + exit 0 +fi + +# We need drivers, the extractor and tools. +for pkg in linux-wireless b43-fwcutter wireless_tools +do + if [ ! -d /var/lib/tazpkg/installed/$pkg ]; then + tazpkg get-install $pkg + fi +done + +# Get files +cd /tmp +wget $WGET_URL || exit +#tar xjf $TARBALL +#cd $DIR-$VERSION/ + +# Create pseudo package +mkdir -p b43legacy-firmware-$VERSION/fs/lib/firmware +b43-fwcutter -w "b43legacy-firmware-$VERSION/fs/lib/firmware" wl_apsta-3.130.20.0.o + +# Creat receipt +cat > b43legacy-firmware-$VERSION/receipt <