summaryrefslogtreecommitdiff
path: root/mkipks
authorkergoth <kergoth>2002-12-11 19:57:00 (UTC)
committer kergoth <kergoth>2002-12-11 19:57:00 (UTC)
commit3faddab31483bda0dd9d093cd473ffb801207b9c (patch) (unidiff)
tree5d7d16ee4114168b4468dc71e5c140a801ad13db /mkipks
parentf55158aac4a23cbdca20145634886b2b757d4465 (diff)
downloadopie-3faddab31483bda0dd9d093cd473ffb801207b9c.zip
opie-3faddab31483bda0dd9d093cd473ffb801207b9c.tar.gz
opie-3faddab31483bda0dd9d093cd473ffb801207b9c.tar.bz2
create opie startup script links in postinst, remove in prerm, instead of including the link in the ipk
Diffstat (limited to 'mkipks') (more/less context) (ignore whitespace changes)
-rwxr-xr-xmkipks2
1 files changed, 0 insertions, 2 deletions
diff --git a/mkipks b/mkipks
index b238935..c39b66f 100755
--- a/mkipks
+++ b/mkipks
@@ -1,20 +1,18 @@
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
8ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie
9 7
10mkdir -p $OPIEDIR/etc/rcS.d 8mkdir -p $OPIEDIR/etc/rcS.d
11ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash 9ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash
12 10
13VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 11VERSION_MAJ=$(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) 12VERSION_MIN=$(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) 13VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h)
16SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) 14SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
17if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h 15if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
18then 16then
19 [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)" 17 [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)"
20 SUB_VERSION=$VERSION_CVS 18 SUB_VERSION=$VERSION_CVS