[OpenWrt-Devel] [PATCH v3] brcm-wl: fix bash comparison error

2014-10-17 Thread Álvaro Fernández Rojas
wlc returns a string number ending with \n, making it impossible to compare this value to a number. Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- v3: avoid using an extra variable. v2: use string comparison. diff --git a/package/kernel/broadcom-wl/files/lib/wifi/broadcom.sh

Re: [OpenWrt-Devel] [PATCH v3] brcm-wl: fix bash comparison error

2014-10-17 Thread Bastian Bittorf
* Álvaro Fernández Rojas nolt...@gmail.com [17.10.2014 15:11]: - [ $leddc -eq 0x ] || { + [ $leddc == 0x\n ] || { this is a bashism, use: [ $leddc = '0x\n' ] || { bye, bastian ___ openwrt-devel mailing list