-rw-r--r-- | core/opiealarm/Makefile | 6 | ||||
-rw-r--r-- | core/opiealarm/opie-opiealarm.control | 2 | ||||
-rwxr-xr-x | core/opiealarm/opieatd | 37 |
3 files changed, 2 insertions, 43 deletions
diff --git a/core/opiealarm/Makefile b/core/opiealarm/Makefile index 03e6957..255083d 100644 --- a/core/opiealarm/Makefile +++ b/core/opiealarm/Makefile @@ -11,3 +11,3 @@ LDFLAGS:= -all: $(DESTDIR)/opiealarm $(DESTDIR)/opieatd +all: $(DESTDIR)/opiealarm @@ -19,6 +19,2 @@ $(DESTDIR)/opiealarm: opiealarm.c -$(DESTDIR)/opieatd: opieatd - cp opieatd $(DESTDIR)/opieatd - chmod +x $(DESTDIR)/opieatd - clean: diff --git a/core/opiealarm/opie-opiealarm.control b/core/opiealarm/opie-opiealarm.control index 9581649..175579f 100644 --- a/core/opiealarm/opie-opiealarm.control +++ b/core/opiealarm/opie-opiealarm.control @@ -1,2 +1,2 @@ -Files: bin/opiealarm bin/opieatd root/etc/init.d/opieatd root/etc/suspend-scripts/S46opiealarm root/etc/resume-scripts/R46opiealarm +Files: bin/opiealarm root/etc/suspend-scripts/S46opiealarm root/etc/resume-scripts/R46opiealarm Priority: required diff --git a/core/opiealarm/opieatd b/core/opiealarm/opieatd deleted file mode 100755 index 34dfb2e..0000000 --- a/core/opiealarm/opieatd +++ b/dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -timefile=/etc/resumeat - -trap exit 0 SIGTERM SIGINT SIGQUIT - -echo $$ >/var/run/opieatd.pid - -mkdir -p /var/spool/at -[ -p /var/spool/at/trigger ] || mkfifo /var/spool/at/trigger - -while true; do - while read </var/spool/at/trigger dummy; do - FILES=`ls /var/spool/at/[0-9]* 2>/dev/null` - - if [ -z "$FILES" ]; then - # echo "clear resume at" - echo "" >$timefile - else - for i in "$FILES"; do - # echo "File = $i" - - unixtime=`basename $i | cut -c1-10` - pid=`basename $i | cut -c12-` - - if [ -d /proc/$pid ]; then - # echo "Datestring = $unixtime" - echo "$unixtime" >$timefile - else - rm -f $i - fi - done - fi - done -done - -exit 0 |