summaryrefslogtreecommitdiff
path: root/packages/altboot/files/altboot-menu/Advanced/60-orig-init
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2006-01-21 12:27:25 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-21 12:27:25 +0000
commit8531d4f75210ce29d72d314b65035bfdecd882c2 (patch)
tree4e0a2f119faf1370888692b6670073aa171b9271 /packages/altboot/files/altboot-menu/Advanced/60-orig-init
parent4ac1a07fcbd2a82ee7504a6423d42e6055a95d99 (diff)
altboot:
- 40-bootNFS: Copy resolv.conf from flash into pivot_root to allow working DNS - Allowing to use altboot as init inside a pivot_root. Which means as soon as th e new root is booted, you are presented with altboots menu again. But this ti me changing behaviour of the pivot_root booting sequence - Improved detected if altboot is run by user (to switch runlevels manually) or kernel. - Do not run scripts in /etc/altboot.rc if altboot is not enabled - Add Advanced/Boot original INIT. Note: "Normal Boot" might be different than the real /sbin/init on some machines.
Diffstat (limited to 'packages/altboot/files/altboot-menu/Advanced/60-orig-init')
-rw-r--r--packages/altboot/files/altboot-menu/Advanced/60-orig-init19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/altboot/files/altboot-menu/Advanced/60-orig-init b/packages/altboot/files/altboot-menu/Advanced/60-orig-init
new file mode 100644
index 0000000000..9f4ff78388
--- /dev/null
+++ b/packages/altboot/files/altboot-menu/Advanced/60-orig-init
@@ -0,0 +1,19 @@
+# !/bin/sh
+M_TITLE="Boot original INIT"
+
+
+run_module() {
+
+ test -e /etc/altboot.func && . /etc/altboot.func || die "ERROR: /etc/altboot.func not found. Check your installation!"
+
+ echo "altboot: Using real init [$REAL_INIT] [$INIT_RUNLEVEL] *" >/dev/tty1
+ exec $REAL_INIT $INIT_RUNLEVEL
+ exit 0
+
+}
+
+case "$1" in
+title) echo "$M_TITLE";;
+run) run_module;;
+esac
+