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

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

a new version for PM-aware release, i.e nightlies etc.

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 revisions post-Alpha4
8# (i.e. with 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
26HAIKU_TEMP=system/cache/tmp/package_me/boot/system/data/firmware
27
28baseURL=http://svn.haiku-os.org/haiku/haiku/trunk/src/system/libroot/posix
29archiveName=haiku-wifi-firmware-data.zip
30
31# copy these to system/data/firmware/broadcom43xx/b43-fwcutter/
32dir=$HAIKU_TEMP/broadcom43xx/b43-fwcutter
33DownloadFileTo http://bues.ch/b43/fwcutter/b43-fwcutter-019.tar.bz2 $dir
34DownloadFileTo $baseURL/glibc/string/byteswap.h $dir
35
36# copy these to system/data/firmware/broadcom43xx/b43-fwcutter/bits
37dir=$HAIKU_TEMP/broadcom43xx/b43-fwcutter/bits
38DownloadFileTo $baseURL/glibc/include/arch/x86/bits/byteswap.h $dir
39
40# copy these to system/data/firmware/broadcom43xx/
41dir=$HAIKU_TEMP/broadcom43xx
42DownloadFileTo http://downloads.openwrt.org/sources/wl_apsta-3.130.20.0.o $dir
43
44# copy these to system/data/firmware/marvell88w8335
45dir=$HAIKU_TEMP/marvell88w8335
46DownloadFileTo http://weongyo.org/project/malo/malo-firmware-1.4.tar.gz $dir
47
48cd "$WIFI_DATA_TOP"
49zip -9ry ../$archiveName .
50cd ..
51
52echo ""
53echo ""
54echo "For Haiku revisions post-Alpha4 (i.e. with package management)"
55echo ""
56echo "Extract $archiveName to your Haiku's /boot"
57echo "Then run install-wifi-firmwares.sh"