busybox: enable all disabled devices in /cat/proc/wakeup to wakeup from standby

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-07-27 20:11:56 +02:00
parent 16a900f7cc
commit c24203385b

View File

@ -30,4 +30,12 @@
progress "Starting ACPI daemon"
acpid /dev/input/event* 2>&1 > /dev/null
if [ -f /proc/acpi/wakeup ]; then
progress "enable WakeUp devices"
for device in `cat /proc/acpi/wakeup |grep "*disabled" | cut -f1 -d " "`; do
echo -n $device > /proc/acpi/wakeup
done
fi
)&