From 84d97bb6a076f7d518d7c0e6c60e0fd080bc9923 Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Sat, 6 Aug 2005 12:02:28 +0000 Subject: altboot: Add pkg_postinst_spitz, courtesy of JustinP @ #openzaurus. --- packages/altboot/altboot.bb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'packages/altboot/altboot.bb') diff --git a/packages/altboot/altboot.bb b/packages/altboot/altboot.bb index c02f1c6875..e22341483c 100644 --- a/packages/altboot/altboot.bb +++ b/packages/altboot/altboot.bb @@ -6,7 +6,6 @@ MAINTAINER = "Matthias 'CoreDump' Hentges " LICENSE = "GPL" -PV = "0.0.1+cvs-${CVSDATE}" PR = "r3" @@ -49,9 +48,18 @@ pkg_postinst_spitz() { # /l/m only exists on the HDD on spitz if test -d /lib/modules then - # FIXME: Do be written - a=a # do nothing - fi + if [ -e /media/realroot/sbin/init ]; then + ROOT_MOUNT_POINT="/media/realroot" + elif [ -e /media/ROM/sbin/init ]; then + ROOT_MOUNT_POINT="/media/ROM" + fi + ROOT_MOUNT_DEVICE = `cat /proc/mounts | grep $REALROOT | grep jffs2 | cut -d " " -f 1` + mount -oremount,rw $ROOT_MOUNT_DEVICE $ROOT_MOUNT_POINT + cp -R /etc/altboot* $ROOT_MOUNT_POINT/etc + cp /sbin/init.altboot $ROOT_MOINT_POINT/sbin + mv $ROOT_MOUNT_POINT/sbin/init $ROOT_MOUNT_POINT/sbin/init.orig + ln -s /sbin/init.altboot $ROOT_MOUNT_POINT/sbin/init + fi } pkg_postrm() { -- cgit v1.2.3