From 98dbbbc0302167a17b08f02661f1e6d426d54030 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 3 Jun 2009 16:07:20 +0000 Subject: Changed debugging for PreBoot ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2921 95ad53e4-c205-0410-b2fa-d234c58c8868 --- boot-env/preboot/uclib-rootfs/init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'boot-env') diff --git a/boot-env/preboot/uclib-rootfs/init b/boot-env/preboot/uclib-rootfs/init index 5ee0d17a..fa4a75d8 100755 --- a/boot-env/preboot/uclib-rootfs/init +++ b/boot-env/preboot/uclib-rootfs/init @@ -63,6 +63,7 @@ mkdir -p ${devdir}/pts ${devdir}/shm export PATH=/bin:/sbin:/usr/bin/:/usr/sbin # redirect kernel messages to tty10 instead of tty1 +getty -i -n -l /bin/ash 38400 tty10 & setlogcons 10 dialog --infobox "Starting OpenSLX preboot environment ..." 3 65 @@ -113,7 +114,7 @@ done # start a watchdog to ensure an automated reboot or halt of the machine if the # preboot init does not succeed (e.g. missing kernel module/firmware for the # network adaptor) -if [ "${DEBUGLEVEL}" -gt 0 ] ; then +if [ "${DEBUGLEVEL}" -eq 0 ] ; then cat</bin/watchdog #!/bin/ash echo \$$ > /tmp/watchdogpid @@ -123,6 +124,8 @@ echo "o" >/proc/sysrq-trigger EOF chmod u+x /bin/watchdog watchdog & +else + getty -i -n -l /bin/ash 38400 tty2 & fi if [ -n "${SSID}" ] ; then -- cgit v1.2.3-55-g7522