author | kergoth <kergoth> | 2002-11-20 22:12:38 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-20 22:12:38 (UTC) |
commit | a228ef2bab036aabc1036d0ff2c59b42687cf6d5 (patch) (unidiff) | |
tree | 0b764b5db2d400377d34cf123bf9b9445dbcea5f | |
parent | 170ce93a5a1164526fb83b46c65684799cbe055f (diff) | |
download | opie-a228ef2bab036aabc1036d0ff2c59b42687cf6d5.zip opie-a228ef2bab036aabc1036d0ff2c59b42687cf6d5.tar.gz opie-a228ef2bab036aabc1036d0ff2c59b42687cf6d5.tar.bz2 |
Add opiealarm suspend/resume script for use with apmd
-rwxr-xr-x | root/etc/apm/event.d/01opiealarm | 11 |
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 | |||
5 | if [ "$1" = suspend ]; then | ||
6 | /opt/QtPalmtop/bin/opiealarm -s -f | ||
7 | elif [ "$1" = resume ] && [ "$2" != standby ]; then | ||
8 | /opt/QtPalmtop/bin/opiealarm -r -a 120 | ||
9 | fi | ||
10 | |||
11 | |||