summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorJustin Patrin <papercrane@gmail.com>2006-02-24 20:48:19 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-02-24 20:48:19 +0000
commit98f3a297f2cbda11a6df717652c82521ddbb63ed (patch)
tree0da1b065dde94350ba8977bcb9f6ae05c6dc17be /packages
parent7e4a8f3e8c58a591970c7abddfc549e1928850c5 (diff)
altboot: update the postinst/rm again for spitz, if installing to flash on root just do update-alternatives
Diffstat (limited to 'packages')
-rw-r--r--packages/altboot/altboot_0.0.0.bb14
-rw-r--r--packages/altboot/altboot_0.0.5-rc4.bb14
2 files changed, 18 insertions, 10 deletions
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 <oe@hentges.net>"
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