mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
Revert "ethtool: add support to disable WOL for broken drivers, add 'e1000e' as broken driver"
This reverts commit 1853a14d93130ae55224ce4184af4523a8b6638e.
This commit is contained in:
parent
bf3611a25d
commit
342921f171
@ -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