summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show 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
@@ -9,7 +9,7 @@ STRIP:=$(CROSS)strip
CFLAGS:=-O2
LDFLAGS:=
-all: $(DESTDIR)/opiealarm $(DESTDIR)/opieatd
+all: $(DESTDIR)/opiealarm
$(DESTDIR)/opiealarm: opiealarm.c
$(CC) $(CFLAGS) opiealarm.c -o $(DESTDIR)/opiealarm $(LDFLAGS)
@@ -17,10 +17,6 @@ $(DESTDIR)/opiealarm: opiealarm.c
chmod u+s $(DESTDIR)/opiealarm
chown root $(DESTDIR)/opiealarm 2>/dev/null || echo -e "\nopiealarm must be owned by root to work correctly.\n"
-$(DESTDIR)/opieatd: opieatd
- cp opieatd $(DESTDIR)/opieatd
- chmod +x $(DESTDIR)/opieatd
-
clean:
-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,4 +1,4 @@
-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
Provides: ipaqalarm
Conflicts: 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 @@
-#!/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