/etc/inittab*: set %serialspeed% in grmlserial settings.
[grml-etc.git] / etc / inittab.small
index 2f78a44..f57120d 100644 (file)
@@ -3,7 +3,6 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Son Apr 15 13:10:36 CEST 2007 [mika]
 ################################################################################
 
 # The default runlevel.
@@ -33,7 +32,7 @@ l5:5:wait:/etc/init.d/rc 5
 l6:6:wait:/etc/init.d/grml-reboot
 
 # What to do when CTRL-ALT-DEL is pressed.
-ca::ctrlaltdel:/etc/init 0
+ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
 
 # Action on special keypress (ALT-UpArrow).
 kb::kbrequest:/bin/echo "Keyboard Request -- edit /etc/inittab to let this work."
@@ -50,44 +49,36 @@ po::powerokwait:/etc/init.d/powerfail stop
 #
 # Format:
 #  <id>:<runlevels>:<action>:<process>
+# 4 virtual consoles with immortal shells
+# Note that on most Debian systems tty7 is used by the X Window System.
+# Use tty8 a second xserver.
 1:12345:respawn:/sbin/rungetty tty1 --noclear -u root -g root --autologin root /usr/bin/zsh-login
 2:2345:respawn:/sbin/rungetty tty2 -u grml -g grml --autologin grml /usr/bin/grml-init
 3:2345:respawn:/sbin/rungetty tty3 -u grml -g grml --autologin grml /usr/bin/grml-init
-# 4:2345:respawn:/sbin/rungetty tty4 -u grml -g grml --autologin grml /usr/bin/grml-init
-# 5:2345:respawn:/sbin/rungetty tty5 -u grml -g grml --autologin grml /usr/bin/grml-init
-# 6:2345:respawn:/sbin/rungetty tty6 -u grml -g grml --autologin grml /usr/bin/grml-init
-# Note that on most Debian systems tty7 is used by the X Window System.
-# Use tty8 for a second xserver.
-# 9:2345:respawn:/sbin/getty  38400 tty9
-# 10:2345:respawn:/bin/zsh --login -c "/usr/sbin/grml-iptstate ; /usr/bin/grml-init-screen" >/dev/tty10 2>&1 </dev/tty10
-# 11:2345:respawn:/bin/zsh --login -c "/usr/bin/htop ; /usr/bin/grml-init-screen" >/dev/tty11 2>&1 </dev/tty11
-# running console-log on 12 already
-# 12:2345:respawn:/bin/zsh --login -c "/usr/bin/less +F /var/log/syslog ; /usr/bin/grml-screen" >/dev/tty12 2>&1 </dev/tty12
-# 12:2345:respawn:/bin/zsh --login -c "/usr/bin/multitail /var/log/syslog ; /usr/bin/grml-init-screen" >/dev/tty12 2>&1 </dev/tty12
-
-# Restart init with new configuration?
-# kill -1 1
+#4:2345:respawn:/sbin/rungetty tty4 -u grml -g grml --autologin grml /usr/bin/grml-init
+#5:2345:respawn:/sbin/rungetty tty5 -u grml -g grml --autologin grml /usr/bin/grml-init
+#6:2345:respawn:/sbin/rungetty tty6 -u grml -g grml --autologin grml /usr/bin/grml-init
+#9:2345:respawn:/sbin/getty  38400 tty9
+#10:2345:respawn:/bin/zsh --login -c "/usr/sbin/grml-iptstate ; /usr/bin/grml-init-screen" >/dev/tty10 2>&1 </dev/tty10
+#11:2345:respawn:/bin/zsh --login -c "/usr/bin/htop ; /usr/bin/grml-init-screen" >/dev/tty11 2>&1 </dev/tty11
+#12:2345:respawn:/bin/zsh --login -c "/usr/bin/grml-init-multitail ; /usr/bin/grml-init-screen" >/dev/tty12 2>&1 </dev/tty12
 
-# Run gettys in standard runlevels
-#1:2345:respawn:/sbin/mingetty tty1
-#2:2345:respawn:/sbin/mingetty tty2
-#3:2345:respawn:/sbin/mingetty tty3
-#4:2345:respawn:/sbin/mingetty tty4
-#5:2345:respawn:/sbin/mingetty tty5
-#6:2345:respawn:/sbin/mingetty tty6
+################################################################################
+# Please do NOT remove the following lines as they are important for the
+# bootoption serial/console. All lines starting with "#grmlserial#" will be
+# activated and %serialspeed% will be replaced with the according baude rate
+# settings specified on kernel command line then.
+#grmlserial#T0:23:respawn:/bin/bash -c "/sbin/getty -L ttyS0 -l /usr/bin/zsh-login %serialspeed% vt100 || sleep 30"
+#grmlserial#T1:23:respawn:/bin/bash -c "/sbin/getty -L ttyS1 -l /usr/bin/zsh-login %serialspeed% vt100 || sleep 30"
+################################################################################
 
 # Example how to put a getty on a serial line (for a terminal)
-#
 # T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
 # T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100
-
-# Important! Please do not remove the following 2 lines as the are important for cheatcode serial:
-#T0:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS0 || sleep 30"
-#T1:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS1 || sleep 30"
-# Important! #####################################################################################
+# T0:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS0 || sleep 30"
+# T1:2345:respawn:/bin/bash -c "/sbin/mgetty ttyS1 || sleep 30"
 
 # Example how to put a getty on a modem line.
-#
 #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
 
 #-- isdnutils begin
@@ -99,8 +90,10 @@ po::powerokwait:/etc/init.d/powerfail stop
 #I0:2345:respawn:/usr/sbin/vboxgetty -d /dev/ttyI0
 #I1:2345:respawn:/sbin/mgetty -D -m '"" ATZ OK AT&Eyourmsnhere OK AT&B512 OK' -s 38400 ttyI1
 #-- isdnutils end
+
 # Run X Window session from CDROM in runlevel 5
 #w5:5:wait:/bin/sleep 2
 #x5:5:wait:/etc/init.d/xsession start
+
 # Use line below to use secvpnmon. Use init q to reread inittab.
 # SVPN:2345:respawn:/usr/sbin/secvpnmon