summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/orinoco/spectrum-fw/get_symbol_fw
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-09-20 07:04:35 +0000
committerRichard Purdie <richard@openedhand.com>2005-09-20 07:04:35 +0000
commitb4a7122cacef647dbec3db5c9ebe1e504a7670df (patch)
tree006885a1f4e8032062632ee1a091e72c32dd2810 /openembedded/packages/orinoco/spectrum-fw/get_symbol_fw
parentf9e1d16bfa73a2df5254c63ae1abb6a4bbe0a062 (diff)
downloadpoky-b4a7122cacef647dbec3db5c9ebe1e504a7670df.tar.gz
Updates against mainline OE
git-svn-id: https://svn.o-hand.com/repos/poky@26 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/orinoco/spectrum-fw/get_symbol_fw')
-rwxr-xr-xopenembedded/packages/orinoco/spectrum-fw/get_symbol_fw43
1 files changed, 43 insertions, 0 deletions
diff --git a/openembedded/packages/orinoco/spectrum-fw/get_symbol_fw b/openembedded/packages/orinoco/spectrum-fw/get_symbol_fw
new file mode 100755
index 0000000000..e7b0bf2d44
--- /dev/null
+++ b/openembedded/packages/orinoco/spectrum-fw/get_symbol_fw
@@ -0,0 +1,43 @@
1#!/bin/sh
2
3# Get firmware for Symbol Spectrum24 Trilogy.
4# Both the header file and the binary firmware files are produced.
5
6# Copyright (C) 2004 Pavel Roskin <proski@gnu.org>
7
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
11
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.
15
16set -e
17
18URL_BASE='ftp://symstore.longisland.com/Symstore/services_download/wirless_prod/'
19DL_FILE='MC&DriverOnlyInstallers.zip'
20DL_INT1='S24DRVR392B67-01.exe'
21DL_INT2='Driver Only Installer/NetWLan5.sys'
22DRIVER1=symbol1.drv
23DRIVER2=symbol2.drv
24
25get_file() {
26 curl --remote-name "$1" || \
27 wget --passive-ftp "$1" || \
28 wget "$1" || \
29 ftp "$1" </dev/null || \
30 exit 1
31}
32
33if ! test -f $DL_FILE; then
34 get_file $URL_BASE/$DL_FILE
35fi
36
37unzip -p $DL_FILE "$DL_INT1" >$DRIVER1
38unzip -p $DRIVER1 "$DL_INT2" >$DRIVER2
39
40perl parse_symbol_fw $DRIVER2 spectrum_fw.h symbol_sp24t_prim_fw \
41 symbol_sp24t_sec_fw
42
43rm -f $DRIVER1 $DRIVER2 \ No newline at end of file