diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-17 21:26:39 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-02-17 21:26:39 +0000 |
commit | eb2b29b2e5b8be03b537f0c9250c86e65f29cc91 (patch) | |
tree | 7351a38c6d523c72290faf8ddca17d2567c88627 /target/linux | |
parent | 5ea6da2c711e25cc3d0a78058f91426528040880 (diff) | |
download | upstream-eb2b29b2e5b8be03b537f0c9250c86e65f29cc91.tar.gz upstream-eb2b29b2e5b8be03b537f0c9250c86e65f29cc91.tar.bz2 upstream-eb2b29b2e5b8be03b537f0c9250c86e65f29cc91.zip |
ar71xx: fix 82_patch_ath10k
The firware md5sum check never worked due to missing dollar signs.
Also suppress
`md5sum: can't open '/lib/firmware/ath10k/QCA988X/hw2.0/firmware-3.bin'`
error on any board not using ath10k.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44486 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k index 0455ecbcd9..bed140ad95 100644 --- a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k +++ b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k @@ -6,12 +6,18 @@ do_patch_ath10k_firmware() { local firmware_file="/lib/firmware/ath10k/QCA988X/hw2.0/firmware-3.bin" + + # bail out if firmware does not exist + [ -f "$firmware_file" ] || { + return + } + local firmware_md5_orig="5163aa8de591f80b06c77f22e9777473" local firmware_md5_current="$(md5sum $firmware_file)" local firmware_md5_current="${firmware_md5_current%% *}" # verify md5sum before patching - [ "firmware_md5_orig" != "firmware_md5_current" ] || { + [ "$firmware_md5_orig" != "$firmware_md5_current" ] || { return } |