diff options
author | Dirk von Suchodoletz | 2009-06-03 18:07:20 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2009-06-03 18:07:20 +0200 |
commit | 98dbbbc0302167a17b08f02661f1e6d426d54030 (patch) | |
tree | 2916b1966cf28244b73bcc2432d19aa0fb600b85 | |
parent | redirect kernel messages to tty10 in preboot init (diff) | |
download | core-98dbbbc0302167a17b08f02661f1e6d426d54030.tar.gz core-98dbbbc0302167a17b08f02661f1e6d426d54030.tar.xz core-98dbbbc0302167a17b08f02661f1e6d426d54030.zip |
Changed debugging for PreBoot ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2921 95ad53e4-c205-0410-b2fa-d234c58c8868
-rwxr-xr-x | boot-env/preboot/uclib-rootfs/init | 5 |
1 files changed, 4 insertions, 1 deletions
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<<EOF >/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 |