1 2 3 4 5 6 7 8 9 10 11 12
#!/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 opiealarm -s -f elif [ "$1" = resume ] && [ "$2" != standby ]; then opiealarm -r -a 120 fi : exit 0