mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
################################################################################
|
||
# This file is part of OpenELEC - http://www.openelec.tv
|
||
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||
# Copyright (C) 2010-2011 Roman Weber (roman@openelec.tv)
|
||
#
|
||
# OpenELEC is free software: you can redistribute it and/or modify
|
||
# it under the terms of the GNU General Public License as published by
|
||
# the Free Software Foundation, either version 2 of the License, or
|
||
# (at your option) any later version.
|
||
#
|
||
# OpenELEC is distributed in the hope that it will be useful,
|
||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
# GNU General Public License for more details.
|
||
#
|
||
# You should have received a copy of the GNU General Public License
|
||
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
||
################################################################################
|
||
|
||
ACTION!="add|change", GOTO="end"
|
||
SUBSYSTEM!="net", GOTO="end"
|
||
ENV{INTERFACE}!="eth*", GOTO="end"
|
||
|
||
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"
|
||
|
||
LABEL="end"
|