Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 377752 Details for
Bug 511110
<=app-laptop/laptop-mode-tools-1.64 is incompatible with kernel >=3.13
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix kernel >=3.13 compatibility for wireless modules
laptop-mode-tools-1.64-wireless-sysfsattr.patch (text/plain), 1.88 KB, created by
Stefan Huber
on 2014-05-28 08:54:15 UTC
(
hide
)
Description:
Fix kernel >=3.13 compatibility for wireless modules
Filename:
MIME Type:
Creator:
Stefan Huber
Created:
2014-05-28 08:54:15 UTC
Size:
1.88 KB
patch
obsolete
>commit b340a340256c8fc97ec35a1df9e67ab033765480 >Author: Alon Bar-Lev <alon.barlev@gmail.com> >Date: Sat May 24 12:59:21 2014 +0300 > > wireless: support both sysfs attr enable/enabled > > backport of commit 8e8a88373079dffdf7196e2e622c5ade209b4439 > > Starting with linux kernel 3.13, the sysfs attribute 'enable' for pci > devices was renambed to 'enabled'. > > Support the two notations to allow seamless migration. > > Signed-off-by: Stefan Huber <shuber@sthu.org> > >diff --git a/usr/share/laptop-mode-tools/modules/wireless-ipw-power b/usr/share/laptop-mode-tools/modules/wireless-ipw-power >index 3fd93ec..1579c1f 100755 >--- a/usr/share/laptop-mode-tools/modules/wireless-ipw-power >+++ b/usr/share/laptop-mode-tools/modules/wireless-ipw-power >@@ -71,7 +71,7 @@ if [ x$CONTROL_IPW_POWER = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_IPW > # the driver. > LINK_TARGET=`readlink $DEVICE/device/driver` > LINK_TARGET=${LINK_TARGET##*/} >- ENABLED=`cat $DEVICE/device/enable` >+ ENABLED=`[ -r $DEVICE/device/enabled ] && cat $DEVICE/device/enabled || cat $DEVICE/device/enable` > > if [ $ENABLED -eq 1 -a "$LINK_TARGET" = "$1" ]; then > # add the interface name to the list >diff --git a/usr/share/laptop-mode-tools/modules/wireless-iwl-power b/usr/share/laptop-mode-tools/modules/wireless-iwl-power >index ffdedec..ce82e1d 100755 >--- a/usr/share/laptop-mode-tools/modules/wireless-iwl-power >+++ b/usr/share/laptop-mode-tools/modules/wireless-iwl-power >@@ -24,7 +24,7 @@ findWifiIfsByDriver () { > # the driver. > LINK_TARGET=`readlink $DEVICE/device/driver` > LINK_TARGET=${LINK_TARGET##*/} >- ENABLED=`cat $DEVICE/device/enable` >+ ENABLED=`[ -r $DEVICE/device/enabled ] && cat $DEVICE/device/enabled || cat $DEVICE/device/enable` > > if [ $ENABLED -eq 1 -a "$LINK_TARGET" = "$1" ] ; then > # add the interface name to the list
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 511110
:
377500
|
377502
|
377504
|
377556
| 377752