summaryrefslogtreecommitdiff
path: root/root/etc/apm/event.d/01opiealarm
Side-by-side diff
Diffstat (limited to 'root/etc/apm/event.d/01opiealarm') (more/less context) (ignore whitespace changes)
-rwxr-xr-xroot/etc/apm/event.d/01opiealarm11
1 files changed, 11 insertions, 0 deletions
diff --git a/root/etc/apm/event.d/01opiealarm b/root/etc/apm/event.d/01opiealarm
new file mode 100755
index 0000000..323abf7
--- a/dev/null
+++ b/root/etc/apm/event.d/01opiealarm
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Starts opiealarm, which only runs while the iPaq sleeps
+# and wakes it up when the RTC alarm goes off.
+
+if [ "$1" = suspend ]; then
+ /opt/QtPalmtop/bin/opiealarm -s -f
+elif [ "$1" = resume ] && [ "$2" != standby ]; then
+ /opt/QtPalmtop/bin/opiealarm -r -a 120
+fi
+
+