[lwlan-devel] [patch] wlan-udev.sh possible empty variable

Tormod Volden lists.tormod at gmail.com
Sat May 19 05:39:32 EDT 2007


Hi,
In wlan-udev.sh the WLAN_WEXT variable is possibly used uninitialized
in an "if" statement:
 if [ $WLAN_WEXT = 1 ]; then
which then breaks since it becomes :
 if [ = 1 ]; then

Either add quotes,
 if [ "$WLAN_WEXT" = 1 ]; then

or use the attached patch which makes sure WLAN_WEXT has a value.

Best regards,
Tormod
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wlan-udev.sh.patch
Type: text/x-patch
Size: 262 bytes
Desc: not available
Url : http://lists.linux-wlan.com/pipermail/linux-wlan-devel/attachments/20070519/f2430822/attachment.bin 


More information about the Linux-wlan-devel mailing list