mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
ethtool: don't enable wakeup when unsupported
This commit is contained in:
parent
84c946dec4
commit
89448f0e4f
@ -21,7 +21,7 @@ ACTION!="add|change", GOTO="end"
|
|||||||
SUBSYSTEM!="net", GOTO="end"
|
SUBSYSTEM!="net", GOTO="end"
|
||||||
ENV{INTERFACE}!="eth*", GOTO="end"
|
ENV{INTERFACE}!="eth*", GOTO="end"
|
||||||
|
|
||||||
RUN+="/bin/sh -c 'echo enabled >/sys/class/net/$env{INTERFACE}/device/power/wakeup' "
|
TEST=="/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"
|
||||||
|
|
||||||
LABEL="end"
|
LABEL="end"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user