summaryrefslogtreecommitdiff
path: root/mkipks
authorharlekin <harlekin>2002-08-30 12:19:13 (UTC)
committer harlekin <harlekin>2002-08-30 12:19:13 (UTC)
commit56640f56c2c0a5191a47927d48dea1e7df98c985 (patch) (side-by-side diff)
tree05f65b835e99f629f3658672cfdbf7f023aa41b7 /mkipks
parent73ccaa41947cd22902b96c18f3b96a6f9f3e565c (diff)
downloadopie-56640f56c2c0a5191a47927d48dea1e7df98c985.zip
opie-56640f56c2c0a5191a47927d48dea1e7df98c985.tar.gz
opie-56640f56c2c0a5191a47927d48dea1e7df98c985.tar.bz2
make it earlier in boot process
Diffstat (limited to 'mkipks') (more/less context) (ignore whitespace changes)
-rwxr-xr-xmkipks5
1 files changed, 3 insertions, 2 deletions
diff --git a/mkipks b/mkipks
index 1841bc9..8c865d3 100755
--- a/mkipks
+++ b/mkipks
@@ -1,76 +1,77 @@
#!/bin/sh
QTE_VERSION=2.3.3
DEB_VERSION=2.0
# Have to do this here, since CVS can't store symlinks
mkdir -p etc/rc2.d
rm -f etc/rc2.d/S98opie
ln -s ../init.d/opie etc/rc2.d/S98opie
-rm -f etc/rc2.d/S01bootsplash
-ln -s ../init.d/opie etc/rc2.d/S01bootsplash
+mkdir -p etc/rcS.d
+rm -f etc/rcS.d/S01bootsplash
+ln -s ../init.d/opie etc/rcS.d/S01bootsplash
rm -f ipaq/etc/rc2.d/S96opieatd
ln -s ../init.d/opieatd ipaq/etc/rc2.d/S96opieatd
VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h)
SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
then
VERSION_CVS="$(date +%Y%m%d)"
SUB_VERSION=$VERSION_CVS
else
VERSION_CVS=""
fi
QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT
ARCH=arm
STRIP=arm-linux-strip
STRIP_FILES="*ARM*not stripped"
TDIR=/tmp/ipk$$
DATADIR=$TDIR
CTRLDIR=$TDIR/CONTROL
IMAGEDIR=
VERB=
LIST=
RPM=
while [ $# -ne 0 ]
do
case "$1" in
-v)
VERB=1
echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS"
;; -l)
LIST=1
;; -i)
shift
IMAGEDIR=$1
DATADIR=$IMAGEDIR
mkdir -p $IMAGEDIR
;; -rpm)
if [ "$OPIEDIR" != "/opt/Qtopia" ]
then
echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.'
sleep 1
#exit 1
fi
RPM=1
;; -arch)
shift
ARCH=$1
STRIP=
STRIP_FILES=
;; /*)
FILES="$FILES $1"
;; *)
FILES="$FILES $PWD/$1"
esac