aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2015-08-29 17:38:15 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2015-08-29 17:38:15 +0000
commit9893aa395ce99ce01795ec86e4005271d8942dc9 (patch)
tree199e892ead30e119507251dcdbd4f054ca526cee /package/kernel
parentadbb8801acfb54e819b6702fc516acbd6b42148c (diff)
downloadupstream-9893aa395ce99ce01795ec86e4005271d8942dc9.tar.gz
upstream-9893aa395ce99ce01795ec86e4005271d8942dc9.tar.bz2
upstream-9893aa395ce99ce01795ec86e4005271d8942dc9.zip
broadcom-wl: fix bash comparison error
This fixes #17495 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 46746
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
index 65179a5692..271fc45a62 100644
--- a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -218,7 +218,7 @@ enable_broadcom() {
}
local leddc=$(wlc ifname "$device" leddc)
- [ "$leddc" -eq 0xffff ] || {
+ [ $((leddc)) -eq $((0xffff)) ] && {
leddc=0x005a000a;
}