summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-11-20 22:22:26 (UTC)
committer kergoth <kergoth>2002-11-20 22:22:26 (UTC)
commitbbf51378cf165bb2c60b64a1bad141379145889d (patch) (unidiff)
tree7c5168668e23161f94ffdc7c7754754b7476c5a7
parentb0dc62061b6581cb416f01e706610e4cb076935d (diff)
downloadopie-bbf51378cf165bb2c60b64a1bad141379145889d.zip
opie-bbf51378cf165bb2c60b64a1bad141379145889d.tar.gz
opie-bbf51378cf165bb2c60b64a1bad141379145889d.tar.bz2
Create sys v init script symlinks in postinst and remove in prerm rather than including the links in the ipk
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/opiealarm/opie-opiealarm.control2
-rwxr-xr-xcore/opiealarm/opie-opiealarm.postinst8
-rwxr-xr-xcore/opiealarm/opie-opiealarm.prerm1
-rwxr-xr-xmkipks4
4 files changed, 10 insertions, 5 deletions
diff --git a/core/opiealarm/opie-opiealarm.control b/core/opiealarm/opie-opiealarm.control
index 5413ba8..9581649 100644
--- a/core/opiealarm/opie-opiealarm.control
+++ b/core/opiealarm/opie-opiealarm.control
@@ -1,13 +1,13 @@
1Files: bin/opiealarm bin/opieatd root/etc/init.d/opieatd root/etc/rc2.d/S96opieatd root/etc/suspend-scripts/S46opiealarm root/etc/resume-scripts/R46opiealarm 1Files: bin/opiealarm bin/opieatd root/etc/init.d/opieatd root/etc/suspend-scripts/S46opiealarm root/etc/resume-scripts/R46opiealarm
2Priority: required 2Priority: required
3Provides: ipaqalarm 3Provides: ipaqalarm
4Conflicts: ipaqalarm 4Conflicts: ipaqalarm
5Section: opie/system 5Section: opie/system
6Maintainer: Robert Griebl <sandman@handhelds.org> 6Maintainer: Robert Griebl <sandman@handhelds.org>
7Architecture: arm 7Architecture: arm
8Version: $QPE_VERSION-$SUB_VERSION 8Version: $QPE_VERSION-$SUB_VERSION
9Depends: hotplug 9Depends: hotplug
10Description: A wakeup system for OPIE events. 10Description: A wakeup system for OPIE events.
11 Tiny, OPIE specific replacement for ipaqalarm, 11 Tiny, OPIE specific replacement for ipaqalarm,
12 uschedule and qpe2uschedule 12 uschedule and qpe2uschedule
13 13
diff --git a/core/opiealarm/opie-opiealarm.postinst b/core/opiealarm/opie-opiealarm.postinst
index 7fc8350..58298e1 100755
--- a/core/opiealarm/opie-opiealarm.postinst
+++ b/core/opiealarm/opie-opiealarm.postinst
@@ -1,4 +1,12 @@
1#/bin/sh 1#/bin/sh
2 2
3ln -sf ../init.d/opieatd /etc/rc0.d/K96opieatd
4ln -sf ../init.d/opieatd /etc/rc1.d/K96opieatd
5ln -sf ../init.d/opieatd /etc/rc6.d/K96opieatd
6ln -sf ../init.d/opieatd /etc/rc2.d/S96opieatd
7ln -sf ../init.d/opieatd /etc/rc3.d/S96opieatd
8ln -sf ../init.d/opieatd /etc/rc4.d/S96opieatd
9ln -sf ../init.d/opieatd /etc/rc5.d/S96opieatd
3/etc/init.d/opieatd start 10/etc/init.d/opieatd start
11
4exit 0 \ No newline at end of file 12exit 0 \ No newline at end of file
diff --git a/core/opiealarm/opie-opiealarm.prerm b/core/opiealarm/opie-opiealarm.prerm
index b37df5e..5e797b6 100755
--- a/core/opiealarm/opie-opiealarm.prerm
+++ b/core/opiealarm/opie-opiealarm.prerm
@@ -1,4 +1,5 @@
1#/bin/sh 1#/bin/sh
2 2
3/etc/init.d/opieatd stop 3/etc/init.d/opieatd stop
4find /etc -name [SK][0-9][0-9]opieatd | xargs rm -f
4exit 0 5exit 0
diff --git a/mkipks b/mkipks
index 798e73f..b238935 100755
--- a/mkipks
+++ b/mkipks
@@ -1,28 +1,24 @@
1#!/bin/sh 1#!/bin/sh
2 2
3QTE_VERSION=2.3.4 3QTE_VERSION=2.3.4
4DEB_VERSION=2.0 4DEB_VERSION=2.0
5 5
6# Have to do this here, since CVS can't store symlinks 6# Have to do this here, since CVS can't store symlinks
7mkdir -p $OPIEDIR/etc/rc2.d 7mkdir -p $OPIEDIR/etc/rc2.d
8ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie 8ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie
9 9
10mkdir -p $OPIEDIR/etc/rcS.d 10mkdir -p $OPIEDIR/etc/rcS.d
11ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash 11ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash
12 12
13ln -sf ../init.d/opieatd $OPIEDIR/root/etc/rc2.d/S96opieatd
14
15
16
17VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 13VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
18VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 14VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
19VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) 15VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h)
20SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) 16SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
21if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h 17if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
22then 18then
23 [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)" 19 [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)"
24 SUB_VERSION=$VERSION_CVS 20 SUB_VERSION=$VERSION_CVS
25else 21else
26 VERSION_CVS="" 22 VERSION_CVS=""
27fi 23fi
28 24