author | kergoth <kergoth> | 2002-11-20 22:22:26 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-11-20 22:22:26 (UTC) |
commit | bbf51378cf165bb2c60b64a1bad141379145889d (patch) (unidiff) | |
tree | 7c5168668e23161f94ffdc7c7754754b7476c5a7 /mkipks | |
parent | b0dc62061b6581cb416f01e706610e4cb076935d (diff) | |
download | opie-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
-rwxr-xr-x | mkipks | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -5,20 +5,16 @@ DEB_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 |
7 | mkdir -p $OPIEDIR/etc/rc2.d | 7 | mkdir -p $OPIEDIR/etc/rc2.d |
8 | ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie | 8 | ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie |
9 | 9 | ||
10 | mkdir -p $OPIEDIR/etc/rcS.d | 10 | mkdir -p $OPIEDIR/etc/rcS.d |
11 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash | 11 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash |
12 | 12 | ||
13 | ln -sf ../init.d/opieatd $OPIEDIR/root/etc/rc2.d/S96opieatd | ||
14 | |||
15 | |||
16 | |||
17 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) | 13 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
18 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) | 14 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
19 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) | 15 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) |
20 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) | 16 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) |
21 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h | 17 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h |
22 | then | 18 | then |
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 |