summaryrefslogtreecommitdiff
path: root/root/etc/resume-scripts/R46opiealarm
Side-by-side diff
Diffstat (limited to 'root/etc/resume-scripts/R46opiealarm') (more/less context) (ignore whitespace changes)
-rwxr-xr-xroot/etc/resume-scripts/R46opiealarm3
1 files changed, 2 insertions, 1 deletions
diff --git a/root/etc/resume-scripts/R46opiealarm b/root/etc/resume-scripts/R46opiealarm
index e56c5bf..e3ac236 100755
--- a/root/etc/resume-scripts/R46opiealarm
+++ b/root/etc/resume-scripts/R46opiealarm
@@ -2,4 +2,5 @@
# Starts opiealarm, which only runs while the iPaq sleeps
# and wakes it up when the RTC alarm goes off.
-start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/opiealarm.pid --exec /opt/QtPalmtop/bin/opiealarm
+PID=`cat /var/run/opiealarm.pid`
+[ -n "$PID" ] && kill $PID