3
# Retrieve the iwlwifi bill of materials and extract the contents. You
4
# only need to do this when you are updating from one version
5
# if iwlwifi to the next.
12
if [ ! -f iwlwifi-${IVER}.tgz ] ; then wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-${IVER}.tgz; fi
13
if [ ! -f mac80211-${MVER}.tgz ] ; then wget http://intellinuxwireless.org/mac80211/downloads/mac80211-${MVER}.tgz; fi
14
if [ ! -f iwlwifi-3945-ucode-${FW3945_VER}.tgz ] ; then wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-3945-ucode-${FW3945_VER}.tgz; fi
15
if [ ! -f iwlwifi-4965-ucode-${FW4965_VER}.tgz ] ; then wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-${FW4965_VER}.tgz; fi
18
# Untar and normalize the directory names.
20
rm -rf iwlwifi; tar xzf iwlwifi-${IVER}.tgz; mv iwlwifi-${IVER} iwlwifi
21
rm -rf mac80211; tar xzf mac80211-${MVER}.tgz; mv mac80211-${MVER} mac80211
24
# Note the '-1' in the new firmware file name.
26
tar xzf iwlwifi-3945-ucode-${FW3945_VER}.tgz
27
mv iwlwifi-3945-ucode-${FW3945_VER}/iwlwifi-3945-1.ucode ../../../ubuntu-firmware/iwlwifi/iwlwifi-3945-1.ucode
28
rm -rf iwlwifi-3945-ucode-${FW3945_VER}
31
# Note the '-1' in the new firmware file name.
33
tar xzf iwlwifi-4965-ucode-${FW4965_VER}.tgz
34
mv iwlwifi-4965-ucode-${FW4965_VER}/iwlwifi-4965-1.ucode ../../../ubuntu-firmware/iwlwifi/iwlwifi-4965-1.ucode
35
rm -rf iwlwifi-4965-ucode-${FW4965_VER}