summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/init
diff options
context:
space:
mode:
authorDirk von Suchodoletz2008-08-24 00:08:25 +0200
committerDirk von Suchodoletz2008-08-24 00:08:25 +0200
commit3a59b4e9f515f91d109c26ae7f51f334e143e240 (patch)
tree861533822650de959a698a0941a21c44e5c01fb0 /initramfs/stage3-stuff/init
parentBusybox with getty applet (now without passwd stuff - no needed any longer), (diff)
downloadcore-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-xinitramfs/stage3-stuff/init6
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