[OpenWrt-Devel] [PATCH v5] brcm-wl: fix bash comparison error
Álvaro Fernández Rojas
noltari at gmail.com
Mon Oct 20 13:35:19 EDT 2014
Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
v5: convert to a numeric value.
v4: remove bashishm as suggested by Bastian Bittorf.
v3: avoid using an extra variable.
v2: use string comparison
diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
index 69e3132..6a4d400 100644
--- a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -209,7 +209,7 @@ enable_broadcom() {
}
local leddc=$(wlc ifname "$device" leddc)
- [ "$leddc" -eq 0xffff ] || {
+ [ $((leddc)) -eq $((0xffff)) ] && {
leddc=0x005a000a;
}
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list