From 3a59b4e9f515f91d109c26ae7f51f334e143e240 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sat, 23 Aug 2008 22:08:25 +0000 Subject: Introduction of a debug shell from runlevel 3 on, see DebugLevel. Closes ticket #261. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2087 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/stage3-stuff/init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'initramfs/stage3-stuff/init') diff --git a/initramfs/stage3-stuff/init b/initramfs/stage3-stuff/init index 5fb70550..87e11ccb 100755 --- a/initramfs/stage3-stuff/init +++ b/initramfs/stage3-stuff/init @@ -140,8 +140,12 @@ in $0\ncountry=\"${COUNTRY}\"" >>/etc/initramfs-setup # ... or a specified debug level debug=*) DEBUGLEVEL=${opts#debug=} - [ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 20 ] && \ + if [ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 20 ] ; then echo "** SLX init started near $(sysup)" + elif [ $DEBUGLEVEL -ge 3 -a $DEBUGLEVEL -le 20 ] ; then + echo "Debug shell started on second console (tty2)" + getty -i -n -l /bin/ash 38400 tty2 & + fi ;; # essid for WLAN boot (experimental, might be moved to a module component # in later versions -- cgit v1.2.3-55-g7522