blob: 43cd0e485e259a167d8e59c7a11837376fdbd4b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#! /bin/sh
#
# Set eth0 WOL
#
# Version: @(#)ethwol 1.00 18-Jul-2013
#
PATH=/sbin:/bin:/usr/sbin:/usr/bin
#activate WakeOnLAN
grep -q 'enable' /proc/stb/fp/wol
if [ $? -eq 0 ]
then
echo [WOL] activate WakeOnLAN at device eth0
ethtool -s eth0 wol g
else
echo [WOL] WakeOnLAN is not enabled
fi
: exit 0
|