diff options
author | Matthias Hentges <oe@hentges.net> | 2005-08-06 12:02:28 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-06 12:02:28 +0000 |
commit | 84d97bb6a076f7d518d7c0e6c60e0fd080bc9923 (patch) | |
tree | 646a3f23a52203d5a7f6d95485dbb1977be4637b /packages/altboot/altboot.bb | |
parent | 2a97edc93803aecfab00d3c4635eca07af298d63 (diff) |
altboot: Add pkg_postinst_spitz, courtesy of JustinP @ #openzaurus.
Diffstat (limited to 'packages/altboot/altboot.bb')
-rw-r--r-- | packages/altboot/altboot.bb | 16 |
1 files changed, 12 insertions, 4 deletions
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 <oe@hentges.net>" 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() { |