[Bug 1443249] Re: After kernel-3.13.04-41, wireless script checks wrong sys file.
katsu
1443249 at bugs.launchpad.net
Mon Apr 13 05:08:11 UTC 2015
[the root cause]
$ apt-get changelog linux-image-3.13.0-41-generic
--->---> snip --->---> snip --->---> snip --->---> snip --->--->
* PCI: Rename sysfs 'enabled' file back to 'enable'
- LP: #1393477
--->---> snip --->---> snip --->---> snip --->---> snip --->--->
[recommendation 1]
* revert 17-fix-wireless-hook.patch in pm-utils package.
* debian/patches/17-fix-wireless-hook.patch: Fix typo in wireless
hook (LP: #1299975).
[recommendation 2]
$ diff -Nur wireless.orig wireless
--- wireless.orig 2015-04-12 13:52:04.911478886 +0900
+++ wireless 2015-04-12 13:52:37.791641939 +0900
@@ -19,8 +19,12 @@
[ -L "/sys/class/net/$1/device/driver" ] || return 1
# Skip if not a wireless card.
[ -d "/sys/class/net/$1/wireless" ] || return 1
+ # Confirm sysfs filename. (enable or enabled)
+ [ -e "/sys/class/net/$1/device/enable" ] && sysfsname="enable"
+ [ -e "/sys/class/net/$1/device/enabled" ] && sysfsname="enabled"
# Also don't do anything if the device is disabled
- [ "$(cat /sys/class/net/$1/device/enabled)" = "1" ] || return 1
+ [ "$(cat /sys/class/net/$1/device/$sysfsname)" = "1" ] || return 1
+ unset sysfsname
driver="$(readlink "/sys/class/net/$1/device/driver")"
driver=${driver##*/}
case $driver in
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to pm-utils in Ubuntu.
https://bugs.launchpad.net/bugs/1443249
Title:
After kernel-3.13.04-41, wireless script checks wrong sys file.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/1443249/+subscriptions
More information about the Ubuntu-server-bugs
mailing list