diff options
| author | Matthias Hentges <oe@hentges.net> | 2006-04-03 07:48:01 +0000 |
|---|---|---|
| committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-03 07:48:01 +0000 |
| commit | 7b4a0c125c3476655207bc2ec5fbb771b1712721 (patch) | |
| tree | 172befbeea5d9c0cf42b87cd28aa0e88318fbd58 /packages/altboot/files/init.altboot | |
| parent | 2764aaf7448ae074224d84fc94e886d2fb20ce6c (diff) | |
altboot: Change the way we check if altboot is called by the kernel or the user.The old function only worked because on most Zaurii /var is lost on reboot.
This fixes altboot on Spitz / Borzoi w/ kernel 2.6.
Courtesy polyonymous @ #openzaurus
Diffstat (limited to 'packages/altboot/files/init.altboot')
| -rw-r--r-- | packages/altboot/files/init.altboot | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/altboot/files/init.altboot b/packages/altboot/files/init.altboot index 665b3fa4b5..dc3900dcca 100644 --- a/packages/altboot/files/init.altboot +++ b/packages/altboot/files/init.altboot @@ -8,7 +8,7 @@ test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!" CURRENT_ENV="`set`" -VERSION="0.0.4" +VERSION="DEVELOPER SNAPSHOT" # Set some defaults in case altboot.cfg is missing REAL_INIT="/sbin/init.sysvinit" @@ -280,7 +280,7 @@ wait_for_input() { # * * * * * * This is the main function * * * * * * -if test "`runlevel`" != "unknown" -a "$1" != "-force" +if test -f /proc/cmdline -a "$1" != "-force" then echo "altboot: Using real init [$REAL_INIT] [$*] *" >/dev/tty1 exec $REAL_INIT $* |
