Revert "ethtool: add support to disable WOL for broken drivers, add 'e1000e' as broken driver"

This reverts commit c025763aac18c2b420609512d9be481710b0f525.
This commit is contained in:
Stephan Raue 2014-06-01 19:54:54 +02:00
parent 36c45ec7da
commit eac2b92c62

View File

@ -18,20 +18,10 @@
################################################################################
ACTION!="add|change", GOTO="end"
SUBSYSTEM!="net", ENV{INTERFACE}!="eth*", GOTO="end"
SUBSYSTEM!="net", GOTO="end"
ENV{INTERFACE}!="eth*", GOTO="end"
# Broken drivers, usually they break suspend/wakeup
DRIVERS=="e1000e", GOTO="broken"
# enable WOL and wakeup support
LABEL="begin"
RUN+="/bin/sh -c 'echo enabled >/sys/class/net/$env{INTERFACE}/device/power/wakeup' "
RUN+="/usr/sbin/ethtool -s $env{INTERFACE} wol g"
GOTO="end"
# disable WOL for broken drivers
LABEL="broken"
RUN+="/usr/sbin/ethtool -s $env{INTERFACE} wol d"
GOTO="end"
LABEL="end"