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

File new_download-data-for-wlan-firmwares.txt, 1.3 KB (added by humdinger, 10 years ago)

updated download-data-for-wlan-firmwares.txt script

Line 
1#!/bin/sh
2
3DownloadFileTo()
4{
5 local url="$1"
6 local targetDir="$WIFI_DATA_TOP/$2/"
7 if [ ! -d "$targetDir" ]; then
8 mkdir -p "$targetDir"
9 fi
10 cd "$targetDir"
11 wget "$url"
12 cd "$SCRIPT_TOP_DIR"
13}
14
15
16# some variables
17SCRIPT_TOP_DIR=`pwd`
18WIFI_DATA_TOP=wifi-firmware
19HAIKU_TEMP=system/cache/tmp/package_me/boot/system/data/firmware
20
21baseURL=http://svn.haiku-os.org/haiku/haiku/trunk/src/system/libroot/posix
22archiveName=haiku-wifi-firmware-data.zip
23
24# copy these to system/data/firmware/broadcom43xx/b43-fwcutter/
25dir=$HAIKU_TEMP/broadcom43xx/b43-fwcutter
26DownloadFileTo http://bues.ch/b43/fwcutter/b43-fwcutter-019.tar.bz2 $dir
27DownloadFileTo $baseURL/glibc/string/byteswap.h $dir
28
29# copy these to system/data/firmware/broadcom43xx/b43-fwcutter/bits
30dir=$HAIKU_TEMP/broadcom43xx/b43-fwcutter/bits
31DownloadFileTo $baseURL/glibc/include/arch/x86/bits/byteswap.h $dir
32
33# copy these to system/data/firmware/broadcom43xx/
34dir=$HAIKU_TEMP/broadcom43xx
35DownloadFileTo http://downloads.openwrt.org/sources/wl_apsta-3.130.20.0.o $dir
36
37# copy these to system/data/firmware/marvell88w8335
38dir=$HAIKU_TEMP/marvell88w8335
39DownloadFileTo http://weongyo.org/project/malo/malo-firmware-1.4.tar.gz $dir
40
41cd "$WIFI_DATA_TOP"
42zip -9ry ../$archiveName .
43cd ..
44
45echo ""
46echo ""
47echo "Extract $archiveName to your Haiku's /boot"
48echo "Then run install-wifi-firmwares.sh"