summaryrefslogtreecommitdiff
path: root/root
authorkergoth <kergoth>2002-11-20 22:12:38 (UTC)
committer kergoth <kergoth>2002-11-20 22:12:38 (UTC)
commita228ef2bab036aabc1036d0ff2c59b42687cf6d5 (patch) (unidiff)
tree0b764b5db2d400377d34cf123bf9b9445dbcea5f /root
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') (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 @@
1#!/bin/sh
2# Starts opiealarm, which only runs while the iPaq sleeps
3# and wakes it up when the RTC alarm goes off.
4
5if [ "$1" = suspend ]; then
6 /opt/QtPalmtop/bin/opiealarm -s -f
7elif [ "$1" = resume ] && [ "$2" != standby ]; then
8 /opt/QtPalmtop/bin/opiealarm -r -a 120
9fi
10
11