summaryrefslogtreecommitdiff
authorsandman <sandman>2002-12-10 22:24:13 (UTC)
committer sandman <sandman>2002-12-10 22:24:13 (UTC)
commit34418795f4bef0466fc92aa9dfd8f25210bc2bc5 (patch) (side-by-side diff)
treef3e005443e42ec0aef4804bf571a72200a8bb95b
parent887fb36c5344574f04d19c7442f3db899920e04d (diff)
downloadopie-34418795f4bef0466fc92aa9dfd8f25210bc2bc5.zip
opie-34418795f4bef0466fc92aa9dfd8f25210bc2bc5.tar.gz
opie-34418795f4bef0466fc92aa9dfd8f25210bc2bc5.tar.bz2
no need for opieatd anymore
Diffstat (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
@@ -6,21 +6,17 @@ CC :=$(CROSS)gcc
LD :=$(CROSS)gcc
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)
$(STRIP) --strip-all $(DESTDIR)/opiealarm
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,7 +1,7 @@
-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
Section: opie/system
Maintainer: Robert Griebl <sandman@handhelds.org>
Architecture: arm
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