summaryrefslogtreecommitdiff
path: root/packages/altboot/files/init.altboot
diff options
context:
space:
mode:
Diffstat (limited to 'packages/altboot/files/init.altboot')
-rw-r--r--packages/altboot/files/init.altboot13
1 files changed, 12 insertions, 1 deletions
diff --git a/packages/altboot/files/init.altboot b/packages/altboot/files/init.altboot
index 30868024b8..74200d1ec9 100644
--- a/packages/altboot/files/init.altboot
+++ b/packages/altboot/files/init.altboot
@@ -90,7 +90,7 @@ show_menu() {
if ! test -d "$1/$file"
then
# NOTE: It is important to use "." here so that the script inherits
- # the shell environment / all set variables!
+ # the shell environment / all set variables!
M_TITLE="`. $1/$file title`"
FLAGS="`$1/$file flags`"
@@ -109,6 +109,8 @@ show_menu() {
fi
done
+# debug_echo "FILES READ"
+
# Display directories below /etc/altboot-menu as menu-item
# and add all scripts inside the directory to m_entry
for dir in `ls -1`
@@ -159,6 +161,8 @@ show_menu() {
fi
done
+# debug_echo "DIRS READ"
+
echo ""
}
@@ -491,6 +495,7 @@ fi
# The NSLU2 is an exception as it uses the way-ugly busybox "ps"
#
+mount | grep -q "^/proc" || mount -t proc proc /proc
MACHINE="`cat /proc/cpuinfo | sed -n "/^Hardware/s/.*\:\ \(.*\)/\1/p"`"
case "$MACHINE" in
@@ -507,6 +512,12 @@ case "$MACHINE" in
;;
esac
+if test "`basename "$0"`" = "altboot"
+then
+ show_menu /etc/altboot-menu
+ exit 0
+fi
+
if test "$user_called" = "1"
then
echo "altboot: Using real init [$REAL_INIT] [$*] [`ps |wc -l|tr -d " "`] *" >"$OUT_TTY"