mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
lirc: move out of remote
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
17
packages/sysutils/lirc/scripts/lircd_wakeup_enable
Executable file
17
packages/sysutils/lirc/scripts/lircd_wakeup_enable
Executable 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
|
||||
Reference in New Issue
Block a user