mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
Revert "ethtool: add support to disable WOL for broken drivers, add 'e1000e' as broken driver"
This reverts commit c025763aac18c2b420609512d9be481710b0f525.
This commit is contained in:
parent
36c45ec7da
commit
eac2b92c62
@ -18,20 +18,10 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
ACTION!="add|change", GOTO="end"
|
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+="/bin/sh -c 'echo enabled >/sys/class/net/$env{INTERFACE}/device/power/wakeup' "
|
||||||
RUN+="/usr/sbin/ethtool -s $env{INTERFACE} wol g"
|
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"
|
LABEL="end"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user