summaryrefslogtreecommitdiff
path: root/root/etc
authorkergoth <kergoth>2002-11-20 22:12:38 (UTC)
committer kergoth <kergoth>2002-11-20 22:12:38 (UTC)
commita228ef2bab036aabc1036d0ff2c59b42687cf6d5 (patch) (side-by-side diff)
tree0b764b5db2d400377d34cf123bf9b9445dbcea5f /root/etc
parent170ce93a5a1164526fb83b46c65684799cbe055f (diff)
downloadopie-a228ef2bab036aabc1036d0ff2c59b42687cf6d5.zip
opie-a228ef2bab036aabc1036d0ff2c59b42687cf6d5.tar.gz
opie-a228ef2bab036aabc1036d0ff2c59b42687cf6d5.tar.bz2
Add opiealarm suspend/resume script for use with apmd
Diffstat (limited to 'root/etc') (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
+
+