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

Bastian Bittorf bittorf at bluebottle.com
Fri Oct 17 09:13:09 EDT 2014


* Álvaro Fernández Rojas <noltari at gmail.com> [17.10.2014 15:11]:
> -	[ "$leddc" -eq 0xffff ] || {
> +	[ "$leddc" == "0xffff\n" ] || {

this is a bashism, use:
[ "$leddc" = '0xffff\n' ] || {

bye, bastian
_______________________________________________
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