Use grml-runtty to run our ttys
authorChristian Hofstaedtler <ch@grml.org>
Sun, 21 Aug 2011 15:50:50 +0000 (17:50 +0200)
committerChristian Hofstaedtler <ch@grml.org>
Sun, 21 Aug 2011 16:02:14 +0000 (18:02 +0200)
Requires: grml-scripts (>> 1.4.6)

etc/grml/fai/config/files/etc/inittab/GRMLBASE
etc/grml/fai/config/files/etc/inittab/GRML_SMALL

index 30257ea..67a25b1 100644 (file)
@@ -56,16 +56,16 @@ po::powerokwait:/etc/init.d/powerfail stop
 # 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 root -g root --autologin root /usr/bin/grml-screen
-3:2345:respawn:/sbin/rungetty tty3 -u root -g root --autologin root /usr/bin/grml-screen
-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
+1:12345:respawn:/sbin/grml-runtty /dev/tty1 /usr/share/grml-scripts/run-welcome root
+2:2345:respawn:/sbin/grml-runtty /dev/tty2 /usr/share/grml-scripts/run-screen root
+3:2345:respawn:/sbin/grml-runtty /dev/tty3 /usr/share/grml-scripts/run-screen root
+4:2345:respawn:/sbin/grml-runtty /dev/tty4 /usr/share/grml-scripts/run-screen grml
+5:2345:respawn:/sbin/grml-runtty /dev/tty5 /bin/zsh grml
+6:2345:respawn:/sbin/grml-runtty /dev/tty6 /bin/zsh grml
 9:2345:respawn:/sbin/getty  38400 tty9
-10:2345:respawn:/bin/zsh --login -c "/usr/sbin/grml-iptstate ; /usr/bin/grml-screen" >/dev/tty10 2>&1 </dev/tty10
-11:2345:respawn:/bin/zsh --login -c "/usr/bin/htop ; /usr/bin/grml-screen" >/dev/tty11 2>&1 </dev/tty11
-12:2345:respawn:/bin/zsh --login -c "/usr/bin/grml-init-multitail ; /usr/bin/grml-screen" >/dev/tty12 2>&1 </dev/tty12
+10:2345:respawn:/sbin/grml-runtty /dev/tty10 /usr/sbin/grml-iptstate root
+11:2345:respawn:/sbin/grml-runtty /dev/tty11 /usr/bin/htop root
+12:2345:respawn:/sbin/grml-runtty /dev/tty12 /usr/share/grml-scripts/run-multitail root
 
 ################################################################################
 # Please do NOT remove the line with the marker as it is important for the
index 41980e3..d211c7c 100644 (file)
@@ -56,16 +56,16 @@ po::powerokwait:/etc/init.d/powerfail stop
 # 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
+1:12345:respawn:/sbin/grml-runtty /dev/tty1 /usr/share/grml-scripts/run-welcome root
+2:2345:respawn:/sbin/grml-runtty /dev/tty2 /usr/share/grml-scripts/run-screen root
+3:2345:respawn:/sbin/grml-runtty /dev/tty3 /usr/share/grml-scripts/run-screen root
+#4:2345:respawn:/sbin/grml-runtty /dev/tty4 /usr/share/grml-scripts/run-screen grml
+#5:2345:respawn:/sbin/grml-runtty /dev/tty5 /bin/zsh grml
+#6:2345:respawn:/sbin/grml-runtty /dev/tty6 /bin/zsh grml
 #9:2345:respawn:/sbin/getty  38400 tty9
-#10:2345:respawn:/bin/zsh --login -c "/usr/sbin/grml-iptstate ; /usr/bin/grml-screen" >/dev/tty10 2>&1 </dev/tty10
-#11:2345:respawn:/bin/zsh --login -c "/usr/bin/htop ; /usr/bin/grml-screen" >/dev/tty11 2>&1 </dev/tty11
-#12:2345:respawn:/bin/zsh --login -c "/usr/bin/grml-init-multitail ; /usr/bin/grml-screen" >/dev/tty12 2>&1 </dev/tty12
+#10:2345:respawn:/sbin/grml-runtty /dev/tty10 /usr/sbin/grml-iptstate root
+#11:2345:respawn:/sbin/grml-runtty /dev/tty11 /usr/bin/htop root
+#12:2345:respawn:/sbin/grml-runtty /dev/tty12 /usr/share/grml-scripts/run-multitail root
 
 ################################################################################
 # Please do NOT remove the line with the marker as it is important for the