Ticket #11516: alpha4_download-data-for-wlan-firmwares.txt

File alpha4_download-data-for-wlan-firmwares.txt, 1.6 KB (added by humdinger, 9 years ago)

For Alpha4: the old script with an added comment

Line 
1#!/bin/sh
2
3# Download and zip up wifi firmware from an OS with internet access.
4# To be unpacked to /boot in Haiku and installed from the Terminal
5# by running install-wifi-firmwares.sh
6#
7# To be used for Haiku Alpha4
8# (i.e. without package management)
9
10DownloadFileTo()
11{
12 local url="$1"
13 local targetDir="$WIFI_DATA_TOP/$2/"
14 if [ ! -d "$targetDir" ]; then
15 mkdir -p "$targetDir"
16 fi
17 cd "$targetDir"
18 wget "$url"
19 cd "$SCRIPT_TOP_DIR"
20}
21
22
23# some variables
24SCRIPT_TOP_DIR=`pwd`
25WIFI_DATA_TOP=wifi-firmware
26baseURL=http://svn.haiku-os.org/haiku/haiku/trunk/src/system/libroot/posix
27archiveName=haiku-wifi-firmware-data.zip
28
29# copy these to system/data/firmware/broadcom43xx/b43-fwcutter/
30dir=system/data/firmware/broadcom43xx/b43-fwcutter
31DownloadFileTo http://bu3sch.de/b43/fwcutter/b43-fwcutter-012.tar.bz2 $dir
32DownloadFileTo $baseURL/glibc/string/byteswap.h $dir
33
34# copy these to system/data/firmware/broadcom43xx/b43-fwcutter/bits
35dir=system/data/firmware/broadcom43xx/b43-fwcutter/bits
36DownloadFileTo $baseURL/glibc/include/arch/x86/bits/byteswap.h $dir
37
38# copy these to system/data/firmware/broadcom43xx/
39dir=system/data/firmware/broadcom43xx
40DownloadFileTo http://downloads.openwrt.org/sources/wl_apsta-3.130.20.0.o $dir
41
42# copy these to system/data/firmware/marvell88w8335
43dir=system/data/firmware/marvell88w8335
44DownloadFileTo http://www.nazgul.ch/malo/malo-firmware-1.4.tgz $dir
45
46cd "$WIFI_DATA_TOP"
47zip -9ry ../$archiveName .
48cd ..
49
50echo ""
51echo ""
52echo "For Haiku Alpha4 (i.e. without package management)"
53echo ""
54echo "Extract $archiveName to your Haiku's /boot"
55echo "Then run install-wifi-firmwares.sh"
56