summaryrefslogtreecommitdiff
path: root/packages/altboot/files/init.altboot
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-01-31 23:52:30 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-31 23:52:30 +0000
commit28655b2cf027be29af97f2c6d52b3256c66acff1 (patch)
treec70be4589d29eb75493a4614ac2a574ea744bcec /packages/altboot/files/init.altboot
parente66483e9adcb6701bb7a2cdd6625324029d700c9 (diff)
altboot:
- More kernel 2.6 changes - Booting off SD seems to work as expected now - Turn off printk before showing the menu, kernel messages make a mess of it - Load keympas before showing the menu. init=/bin/sh is useless with a b0rked keymapping.
Diffstat (limited to 'packages/altboot/files/init.altboot')
-rw-r--r--packages/altboot/files/init.altboot10
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/altboot/files/init.altboot b/packages/altboot/files/init.altboot
index 2de4ba247c..cd8b6b8929 100644
--- a/packages/altboot/files/init.altboot
+++ b/packages/altboot/files/init.altboot
@@ -18,11 +18,15 @@ INIT_RUNLEVEL="`cat /etc/inittab | sed -n "/^id\:/s/id\:\([0-9]\)\:.*$/\1/p"`"
test -z "$INIT_RUNLEVEL" && INIT_RUNLEVEL=5
case "`uname -r`" in
-2.6*) test -e /etc/altboot-2.6.cfg && . /etc/altboot-2.6.cfg || echo "WARNING: No altboot-2.6.cfg found! Check your installation of Altboot!" > /dev/tty1;;
-2.4*) test -e /etc/altboot-2.4.cfg && . /etc/altboot-2.4.cfg || echo "WARNING: No altboot-2.4.cfg found! Check your installation of Altboot!" > /dev/tty1;;
-*) die "Unknown kernel [uname -r], no configuration found.";;
+2.6*) ALTBOOT_CFG_FILE="/etc/altboot-2.6.cfg";;
+2.4*) ALTBOOT_CFG_FILE="/etc/altboot-2.4.cfg";;
+*) echo "Warning: Unknown kernel [`uname -r`], using kernel 2.6 configuration!"
+ ALTBOOT_CFG_FILE="/etc/altboot-2.6.cfg";;
esac
+echo "Using [${ALTBOOT_CFG_FILE}]"
+test -e "$ALTBOOT_CFG_FILE" && . "$ALTBOOT_CFG_FILE" || echo "WARNING: No $ALTBOOT_CFG_FILE found! Check your installation of Altboot!" > /dev/tty1
+
C_RED="\033[31m"
C_BLUE="\033[34m"
C_WHITE="\033[37m"