summaryrefslogtreecommitdiff
path: root/core
Unidiff
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/opiealarm/Makefile6
-rw-r--r--core/opiealarm/opie-opiealarm.control2
-rwxr-xr-xcore/opiealarm/opieatd37
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:=
11 11
12all: $(DESTDIR)/opiealarm $(DESTDIR)/opieatd 12all: $(DESTDIR)/opiealarm
13 13
@@ -19,6 +19,2 @@ $(DESTDIR)/opiealarm: opiealarm.c
19 19
20$(DESTDIR)/opieatd: opieatd
21 cp opieatd $(DESTDIR)/opieatd
22 chmod +x $(DESTDIR)/opieatd
23
24clean: 20clean:
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 @@
1Files: bin/opiealarm bin/opieatd root/etc/init.d/opieatd root/etc/suspend-scripts/S46opiealarm root/etc/resume-scripts/R46opiealarm 1Files: bin/opiealarm root/etc/suspend-scripts/S46opiealarm root/etc/resume-scripts/R46opiealarm
2Priority: required 2Priority: 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 @@
1#!/bin/sh
2
3timefile=/etc/resumeat
4
5trap exit 0 SIGTERM SIGINT SIGQUIT
6
7echo $$ >/var/run/opieatd.pid
8
9mkdir -p /var/spool/at
10[ -p /var/spool/at/trigger ] || mkfifo /var/spool/at/trigger
11
12while 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
35done
36
37exit 0