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