Bug 136595 - linux-wlan-ng-0.2.3-r1: Patch for /etc/wlan/shared
Bug#: 136595 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: mobile@gentoo.org Reported By: FelixWiemannBugs@gmx.de
Component: Ebuilds
URL: 
Summary: linux-wlan-ng-0.2.3-r1: Patch for /etc/wlan/shared
Keywords:  
Status Whiteboard: 
Opened: 2006-06-12 16:03 0000
Description:   Opened: 2006-06-12 16:03 0000
Hi,

To avoid the following error message with linux-wlan-ng-0.2.3-r1, ...

# /etc/init.d/wlan stop
 * Shutting Down WLAN Devices ...
/etc/wlan/shared: line 71: [: too many arguments

..., I needed to make the following change:

--- /etc/wlan/shared~   2006-06-13 02:49:11.000000000 +0200
+++ /etc/wlan/shared    2006-06-13 03:01:16.000000000 +0200
@@ -69,7 +69,7 @@
 fi

 if [ -f /proc/sys/kernel/hotplug -a \
-       -x `cat /proc/sys/kernel/hotplug` -a \
+       -x "`cat /proc/sys/kernel/hotplug`" -a \
        -f /etc/hotplug/wlan.agent ] ; then
        HAS_HOTPLUG=y
 else

(/proc/sys/kernel/hotplug is empty on my system.)

Felix

------- Comment #1 From Petteri Räty 2006-06-23 04:03:18 0000 -------
This code is buggy any way and should be fixed upstream. Patch applied. Thanks
for reporting.