author | sandman <sandman> | 2002-12-10 22:24:13 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-12-10 22:24:13 (UTC) |
commit | 34418795f4bef0466fc92aa9dfd8f25210bc2bc5 (patch) (unidiff) | |
tree | f3e005443e42ec0aef4804bf571a72200a8bb95b | |
parent | 887fb36c5344574f04d19c7442f3db899920e04d (diff) | |
download | opie-34418795f4bef0466fc92aa9dfd8f25210bc2bc5.zip opie-34418795f4bef0466fc92aa9dfd8f25210bc2bc5.tar.gz opie-34418795f4bef0466fc92aa9dfd8f25210bc2bc5.tar.bz2 |
no need for opieatd anymore
-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 | |||
@@ -10,5 +10,5 @@ CFLAGS:=-O2 | |||
10 | LDFLAGS:= | 10 | LDFLAGS:= |
11 | 11 | ||
12 | all: $(DESTDIR)/opiealarm $(DESTDIR)/opieatd | 12 | all: $(DESTDIR)/opiealarm |
13 | 13 | ||
14 | $(DESTDIR)/opiealarm: opiealarm.c | 14 | $(DESTDIR)/opiealarm: opiealarm.c |
@@ -18,8 +18,4 @@ $(DESTDIR)/opiealarm: opiealarm.c | |||
18 | chown root $(DESTDIR)/opiealarm 2>/dev/null || echo -e "\nopiealarm must be owned by root to work correctly.\n" | 18 | chown root $(DESTDIR)/opiealarm 2>/dev/null || echo -e "\nopiealarm must be owned by root to work correctly.\n" |
19 | 19 | ||
20 | $(DESTDIR)/opieatd: opieatd | ||
21 | cp opieatd $(DESTDIR)/opieatd | ||
22 | chmod +x $(DESTDIR)/opieatd | ||
23 | |||
24 | clean: | 20 | clean: |
25 | -rm -f *~ core | 21 | -rm -f *~ core |
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,3 +1,3 @@ | |||
1 | Files: bin/opiealarm bin/opieatd root/etc/init.d/opieatd root/etc/suspend-scripts/S46opiealarm root/etc/resume-scripts/R46opiealarm | 1 | Files: bin/opiealarm root/etc/suspend-scripts/S46opiealarm root/etc/resume-scripts/R46opiealarm |
2 | Priority: required | 2 | Priority: required |
3 | Provides: ipaqalarm | 3 | Provides: ipaqalarm |
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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | timefile=/etc/resumeat | ||
4 | |||
5 | trap exit 0 SIGTERM SIGINT SIGQUIT | ||
6 | |||
7 | echo $$ >/var/run/opieatd.pid | ||
8 | |||
9 | mkdir -p /var/spool/at | ||
10 | [ -p /var/spool/at/trigger ] || mkfifo /var/spool/at/trigger | ||
11 | |||
12 | while true; do | ||
13 | while read </var/spool/at/trigger dummy; do | ||
14 | FILES=`ls /var/spool/at/[0-9]* 2>/dev/null` | ||
15 | |||
16 | if [ -z "$FILES" ]; then | ||
17 | # echo "clear resume at" | ||
18 | echo "" >$timefile | ||
19 | else | ||
20 | for i in "$FILES"; do | ||
21 | # echo "File = $i" | ||
22 | |||
23 | unixtime=`basename $i | cut -c1-10` | ||
24 | pid=`basename $i | cut -c12-` | ||
25 | |||
26 | if [ -d /proc/$pid ]; then | ||
27 | # echo "Datestring = $unixtime" | ||
28 | echo "$unixtime" >$timefile | ||
29 | else | ||
30 | rm -f $i | ||
31 | fi | ||
32 | done | ||
33 | fi | ||
34 | done | ||
35 | done | ||
36 | |||
37 | exit 0 | ||