summaryrefslogtreecommitdiff
path: root/packages/altboot/files/init.altboot
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-01-30 10:53:54 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-30 10:53:54 +0000
commit231ac7094917965a06d7189e9b418d1ba0531a63 (patch)
treea1eca4e601349edcff165859cf30516a8344f7d6 /packages/altboot/files/init.altboot
parentd2ade47c029ba289a8c576f9649d73b020486b62 (diff)
altboot:
- First changes to support Kernel 2.6 - As of this push altboot should be considered *unstable* until work on 2.6 has finished! - Add IGNORE_STRIP_ERRORS = "1" to allow for snapshots
Diffstat (limited to 'packages/altboot/files/init.altboot')
-rw-r--r--packages/altboot/files/init.altboot15
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/altboot/files/init.altboot b/packages/altboot/files/init.altboot
index 4d795ced42..506f175c69 100644
--- a/packages/altboot/files/init.altboot
+++ b/packages/altboot/files/init.altboot
@@ -143,7 +143,11 @@ run_timer() {
then
mount -t proc proc /proc >/dev/null 2>&1
- key_ints="`cat /proc/interrupts | grep keyboard | awk '{print $2}'`"
+
+ case "`uname -r`" in
+ 2.4*) key_ints="`cat /proc/interrupts | grep keyboard | awk '{print $2}'`";;
+ 2.6*) key_ints="`cat /proc/interrupts | grep Spitzkbd`";;
+ esac
stty -echo
echo -en "\n\nPlease press any key to launch altboot." > /dev/tty1
@@ -152,9 +156,14 @@ run_timer() {
cnt=0
while test "$cnt" != "$TIMEOUT"
- do
+ do
sleep 1
- if test "`cat /proc/interrupts | grep keyboard | awk '{print $2}'`" != "$key_ints"
+ case "`uname -r`" in
+ 2.4*) key_ints_now="`cat /proc/interrupts | grep keyboard | awk '{print $2}'`";;
+ 2.6*) key_ints_now="`cat /proc/interrupts | grep Spitzkbd`";;
+ esac
+
+ if test "$key_ints_now" != "$key_ints"
then
launch_altboot=yes
stty echo