From 9e1676798ffd3bc8428c5b6717204c8664e67ba1 Mon Sep 17 00:00:00 2001
From: luroh <lurohh@gmail.com>
Date: Sat, 7 Jun 2014 10:57:06 +0200
Subject: [PATCH 2/2] Fix offline installation of iprowifi2100 and iprowifi2200
firmware.
---
data/bin/install-wifi-firmwares.sh | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/data/bin/install-wifi-firmwares.sh b/data/bin/install-wifi-firmwares.sh
index 53713e7..e4e0c0c 100755
a
|
b
|
function CleanTemporaryFiles()
|
147 | 147 | |
148 | 148 | function PreFirmwareInstallation() |
149 | 149 | { |
150 | | echo "Installing firmware for ${driver} ..." |
| 150 | echo "Acquiring firmware for ${driver} ..." |
151 | 151 | mkdir -p "${tempFirmwareDir}/${driver}" |
152 | 152 | UnlinkDriver |
153 | 153 | } |
… |
… |
function PostFirmwareInstallation()
|
158 | 158 | SetFirmwarePermissions |
159 | 159 | SymlinkDriver |
160 | 160 | CleanTemporaryFiles |
161 | | echo "... firmware for ${driver} has been installed." |
| 161 | echo "... firmware for ${driver} will be installed." |
162 | 162 | } |
163 | 163 | |
164 | 164 | |
… |
… |
function InstallIpw2100()
|
167 | 167 | driver='iprowifi2100' |
168 | 168 | PreFirmwareInstallation |
169 | 169 | |
170 | | # Extract contents. |
| 170 | # Prepare firmware archive for extraction. |
171 | 171 | local file='ipw2100-fw-1.3.tgz' |
172 | 172 | local url="${baseURL}/intel/${file}" |
173 | 173 | local dir="${tempFirmwareDir}/${driver}" |
| 174 | cp "${firmwareDir}/${driver}/${file}" "${dir}" |
174 | 175 | DownloadFileIfNotCached $url $file $dir |
175 | 176 | |
176 | | # Install the firmware & license file by extracting in place. |
| 177 | # Extract the firmware & license file in place. |
177 | 178 | cd "${tempFirmwareDir}/${driver}" |
178 | 179 | gunzip < "$file" | tar xf - |
179 | 180 | |
… |
… |
function InstallIprowifi2200()
|
187 | 188 | driver='iprowifi2200' |
188 | 189 | PreFirmwareInstallation |
189 | 190 | |
190 | | # Extract contents. |
| 191 | # Prepare firmware archive for extraction. |
191 | 192 | local file='ipw2200-fw-3.1.tgz' |
192 | 193 | local url="${baseURL}/intel/${file}" |
193 | 194 | local dir="${tempFirmwareDir}/${driver}" |
| 195 | cp "${firmwareDir}/${driver}/${file}" "${dir}" |
194 | 196 | DownloadFileIfNotCached $url $file $dir |
195 | 197 | |
| 198 | # Extract the firmware & license file. |
196 | 199 | cd "$tempDir" |
197 | 200 | gunzip < "${tempFirmwareDir}/${driver}/$file" | tar xf - |
198 | | |
199 | | # Install the firmware & license file. |
200 | 201 | cd "${tempDir}/ipw2200-fw-3.1" |
201 | 202 | mv LICENSE.ipw2200-fw "${tempFirmwareDir}/${driver}/" |
202 | 203 | mv ipw2200-ibss.fw "${tempFirmwareDir}/${driver}/" |