Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 511110 | Differences between
and this patch

Collapse All | Expand All

(-)a/usr/share/laptop-mode-tools/modules/wireless-ipw-power (-1 / +1 lines)
Lines 71-77 if [ x$CONTROL_IPW_POWER = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_IPW Link Here
71
				# the driver.
71
				# the driver.
72
				LINK_TARGET=`readlink $DEVICE/device/driver`
72
				LINK_TARGET=`readlink $DEVICE/device/driver`
73
				LINK_TARGET=${LINK_TARGET##*/}
73
				LINK_TARGET=${LINK_TARGET##*/}
74
                                ENABLED=`cat $DEVICE/device/enable`
74
				ENABLED=`[ -r $DEVICE/device/enabled ] && cat $DEVICE/device/enabled || cat $DEVICE/device/enable`
75
75
76
				if [ $ENABLED -eq 1 -a "$LINK_TARGET" = "$1" ]; then
76
				if [ $ENABLED -eq 1 -a "$LINK_TARGET" = "$1" ]; then
77
					# add the interface name to the list
77
					# add the interface name to the list
(-)a/usr/share/laptop-mode-tools/modules/wireless-iwl-power (-1 / +1 lines)
Lines 24-30 findWifiIfsByDriver () { Link Here
24
			# the driver.
24
			# the driver.
25
			LINK_TARGET=`readlink $DEVICE/device/driver`
25
			LINK_TARGET=`readlink $DEVICE/device/driver`
26
			LINK_TARGET=${LINK_TARGET##*/}
26
			LINK_TARGET=${LINK_TARGET##*/}
27
			ENABLED=`cat $DEVICE/device/enable` 
27
			ENABLED=`[ -r $DEVICE/device/enabled ] && cat $DEVICE/device/enabled || cat $DEVICE/device/enable`
28
			
28
			
29
			if [ $ENABLED -eq 1 -a "$LINK_TARGET" = "$1" ] ; then
29
			if [ $ENABLED -eq 1 -a "$LINK_TARGET" = "$1" ] ; then
30
				# add the interface name to the list
30
				# add the interface name to the list

Return to bug 511110