Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136595 - linux-wlan-ng-0.2.3-r1: Patch for /etc/wlan/shared
Summary: linux-wlan-ng-0.2.3-r1: Patch for /etc/wlan/shared
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-12 16:03 UTC by Felix Wiemann
Modified: 2006-06-23 04:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Wiemann 2006-06-12 16:03:30 UTC
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 Petteri Räty (RETIRED) gentoo-dev 2006-06-23 04:03:18 UTC
This code is buggy any way and should be fixed upstream. Patch applied. Thanks for reporting.