From 98f3a297f2cbda11a6df717652c82521ddbb63ed Mon Sep 17 00:00:00 2001 From: Justin Patrin Date: Fri, 24 Feb 2006 20:48:19 +0000 Subject: altboot: update the postinst/rm again for spitz, if installing to flash on root just do update-alternatives --- packages/altboot/altboot_0.0.0.bb | 14 +++++++++----- packages/altboot/altboot_0.0.5-rc4.bb | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) (limited to 'packages') diff --git a/packages/altboot/altboot_0.0.0.bb b/packages/altboot/altboot_0.0.0.bb index 13ba22cfcc..18cce34a90 100644 --- a/packages/altboot/altboot_0.0.0.bb +++ b/packages/altboot/altboot_0.0.0.bb @@ -6,7 +6,7 @@ MAINTAINER = "Matthias 'CoreDump' Hentges " LICENSE = "GPL" IGNORE_STRIP_ERRORS = "1" -PR = "r22" +PR = "r23" SRC_URI = "file://altboot-menu \ @@ -51,8 +51,10 @@ pkg_postinst_spitz() { # So we need to do that manually (*SIGH*) # the 2.6 kernel for spitz boots from HDD, no need to copy to flash - if cat /proc/version | awk '{print $3}' | grep -q '^2.6' - then + if cat /proc/version | awk '{print $3}' | grep -q '^2.6'; then + update-alternatives --install /sbin/init init /sbin/init.altboot 55 + # no need to copy to flash if we're installing to flash already + elif mount | grep ' / ' | grep -q mtdblock; then update-alternatives --install /sbin/init init /sbin/init.altboot 55 else # /l/m only exists on the HDD on spitz @@ -85,8 +87,10 @@ pkg_postrm() { pkg_postrm_spitz() { # the 2.6 kernel for spitz boots from HDD, no need to remove from flash - if cat /proc/version | awk '{print $3}' | grep -q '^2.6' - then + if cat /proc/version | awk '{print $3}' | grep -q '^2.6'; then + update-alternatives --remove init /sbin/init.altboot + # no need to copy to flash if we're removing from flash already + elif mount | grep ' / ' | grep -q mtdblock; then update-alternatives --remove init /sbin/init.altboot else if test -d /lib/modules diff --git a/packages/altboot/altboot_0.0.5-rc4.bb b/packages/altboot/altboot_0.0.5-rc4.bb index 37ae84a421..20497a8a55 100644 --- a/packages/altboot/altboot_0.0.5-rc4.bb +++ b/packages/altboot/altboot_0.0.5-rc4.bb @@ -12,7 +12,7 @@ HOMEPAGE = "http://www.hentges.net/misc/openzaurus/index.shtml" ###################################################################################### -PR = "r1" +PR = "r2" ###################################################################################### @@ -79,8 +79,10 @@ pkg_postinst_spitz() { # So we need to do that manually (*SIGH*) # the 2.6 kernel for spitz boots from HDD, no need to copy to flash - if cat /proc/version | awk '{print $3}' | grep -q '^2.6' - then + if cat /proc/version | awk '{print $3}' | grep -q '^2.6'; then + update-alternatives --install /sbin/init init /sbin/init.altboot 55 + # no need to copy to flash if we're installing to flash already + elif mount | grep ' / ' | grep -q mtdblock; then update-alternatives --install /sbin/init init /sbin/init.altboot 55 else # /l/m only exists on the HDD on spitz @@ -115,8 +117,10 @@ pkg_postrm() { pkg_postrm_spitz() { # the 2.6 kernel for spitz boots from HDD, no need to remove from flash - if cat /proc/version | awk '{print $3}' | grep -q '^2.6' - then + if cat /proc/version | awk '{print $3}' | grep -q '^2.6'; then + update-alternatives --remove init /sbin/init.altboot + # no need to copy to flash if we're removing from flash already + elif mount | grep ' / ' | grep -q mtdblock; then update-alternatives --remove init /sbin/init.altboot else if test -d /lib/modules -- cgit v1.2.3