PV = "1.0"
-PR = "r0"
+PR = "r1"
SRC_REV = ""
SRC_URI = "file://coldboot \
- file://coldboot.sh"
+ file://coldboot.sh \
+ file://ethwol.sh \
+"
do_install() {
install -d ${D}/etc/init.d \
${D}${sysconfdir}/rc0.d
install -m 0755 ${WORKDIR}/coldboot.sh ${D}/etc/init.d/coldboot.sh
+ install -m 0755 ${WORKDIR}/ethwol.sh ${D}/etc/init.d/ethwol.sh
install -m 0755 ${WORKDIR}/coldboot ${D}/usr/bin/coldboot
ln -sf ../init.d/coldboot.sh ${D}${sysconfdir}/rc0.d/S30coldboot.sh
+ ln -sf ../init.d/ethwol.sh ${D}${sysconfdir}/rc0.d/K32ethwol.sh
}
--- /dev/null
+#! /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