svn-1273
[orinoco_usb.git] / drivers / net / wireless / firmware / get_prism_ap_fw
blobf7a511072d0ffe8b3433074739e4bdb64de2d98b
1 #!/bin/sh
3 # Script to get AP (tertiary) firmware for Prism 2 and Prism 2.5
4 # See http://www.teletronics.com/Firmware.html for latest versions and
5 # release notes.
7 set -e
9 # Complete list
10 files="fw_ap293.zip fw_ap294.zip fw_ap295.zip fw_ap298.zip fw_apv293.zip
11 fw_apv294.zip fw_apv295.zip fw_apv298.zip fw_ap405.zip fw_ap413.zip"
13 # Only latest and greatest - 1.4.0 for Prism 2 and 2.0.4 for Prism 2.5
14 files="fw_ap295.zip fw_apv298.zip"
16 site="http://www.teletronics.com/"
17 unzip=unzip
18 wget=wget
19 parse=./parse_prism_ap_fw
21 for file in $files; do
22 test -r $file || $wget $site$file
23 test -r $file || continue
24 echo "processing $file"
25 $unzip -p $file '*.img' >ap.img
26 $parse ap.img
27 rm -f ap.img
28 done