diff options
| author | Matthias Hentges <oe@hentges.net> | 2006-04-16 12:31:48 +0000 |
|---|---|---|
| committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-16 12:31:48 +0000 |
| commit | e548219776e8934492025573169b3c5e2f8a79d1 (patch) | |
| tree | c5068fd0be7c949a855d3ca95c9cde4d1cd3735a /packages/altboot/files/init.altboot | |
| parent | a20617a89a744f4521065324ebe33811a036b098 (diff) | |
altboot: - Fix image_reconf to propperly mount /home.flash
- Add another bunch of missing redirects for Collie
- Work around error message of playbeep.sh on first-boot
- Re-enable propper failsafe fallthroughs in init.altboot
Diffstat (limited to 'packages/altboot/files/init.altboot')
| -rw-r--r-- | packages/altboot/files/init.altboot | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/packages/altboot/files/init.altboot b/packages/altboot/files/init.altboot index cf3a1f8262..7d8b1b6592 100644 --- a/packages/altboot/files/init.altboot +++ b/packages/altboot/files/init.altboot @@ -31,13 +31,18 @@ C_BLUE="\033[34m" C_WHITE="\033[37m" C_RESET="\033[0m" -die() { +mdie() { echo "ERROR: $1" >/dev/tty0 - #exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1 - echo -e "\nPress <ENTER> to launch the altboot menu" + echo -e "\nPress <ENTER> to return to the menu" read junk - exec /sbin/init.altboot -force</dev/tty0 >/dev/tty0 2>&1 + + test "$junk" = x && exec /bin/sh || exec /sbin/init.altboot -force</dev/tty0 >/dev/tty0 2>&1 +} + +die() { + echo -e "ERROR: $1" >/dev/tty0 + exec $SH_SHELL </dev/tty0 >/dev/tty0 2>&1 } @@ -285,7 +290,7 @@ wait_for_input() { } # * * * * * * This is the main function * * * * * * -# Note: this is positivly ugly. If someone knows a better way to detect wheter +# Note: this is positively ugly. If someone knows a better way to detect wheter # we are already booted into a runlevel _without_ reading /var and / or using `runlevel` # PLEASE let me know. if test -f /proc/cmdline -a "`ps ax|wc -l|tr -d " "`" -gt 30 -a "$1" != "-force" |
