3 # Get firmware for Symbol Spectrum24 Trilogy.
4 # Both the header file and the binary firmware files are produced.
6 # Copyright (C) 2004 Pavel Roskin <proski@gnu.org>
8 # This script is Free Software, and it can be copied, distributed and
9 # modified as defined in the GNU General Public License. A copy of
10 # its license can be downloaded from http://www.gnu.org/copyleft/gpl.html
12 # Usage: get_symbol_fw
13 # Output: spectrum_fw.h symbol_sp24t_prim_fw symbol_sp24t_sec_fw
14 # Needed tools: curl (or wget), unzip, perl.
18 URL_BASE='ftp://symstore.longisland.com/Symstore/services_download/wirless_prod/'
19 DL_FILE='MC&DriverOnlyInstallers.zip'
20 DL_INT1='S24DRVR392B67-01.exe'
21 DL_INT2='Driver Only Installer/NetWLan5.sys'
26 curl --remote-name "$1" || \
27 wget --passive-ftp "$1" || \
29 ftp "$1" </dev/null || \
33 if ! test -f $DL_FILE; then
34 get_file $URL_BASE/$DL_FILE
37 unzip -p $DL_FILE "$DL_INT1" >$DRIVER1
38 unzip -p $DRIVER1 "$DL_INT2" >$DRIVER2
40 perl parse_symbol_fw $DRIVER2 spectrum_fw.h symbol_sp24t_prim_fw \
43 rm -f $DRIVER1 $DRIVER2