lirc: move out of remote

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue
2014-08-14 06:32:52 +02:00
parent 67ef70493b
commit 3cc381c2da
18 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#!/bin/sh
################################################################################
# wakeup_enable
################################################################################
devpath=`readlink -f "/sys/${DEVPATH}"`
while echo "${devpath}" | grep -q '^/sys/devices/' > /dev/null 2>&1 ; do
if test -e "${devpath}/power/wakeup" ; then
state=`cat "${devpath}/power/wakeup"`
if test "x${state}" = "xdisabled" ; then
echo "enabled" > "${devpath}/power/wakeup"
fi
fi
devpath=`dirname "${devpath}"`
done
exit 0