diff options
author | Dirk von Suchodoletz | 2008-08-24 00:08:25 +0200 |
---|---|---|
committer | Dirk von Suchodoletz | 2008-08-24 00:08:25 +0200 |
commit | 3a59b4e9f515f91d109c26ae7f51f334e143e240 (patch) | |
tree | 861533822650de959a698a0941a21c44e5c01fb0 /initramfs/stage3-stuff/init | |
parent | Busybox with getty applet (now without passwd stuff - no needed any longer), (diff) | |
download | core-3a59b4e9f515f91d109c26ae7f51f334e143e240.tar.gz core-3a59b4e9f515f91d109c26ae7f51f334e143e240.tar.xz core-3a59b4e9f515f91d109c26ae7f51f334e143e240.zip |
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
Diffstat (limited to 'initramfs/stage3-stuff/init')
-rwxr-xr-x | initramfs/stage3-stuff/init | 6 |
1 files changed, 5 insertions, 1 deletions
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 |