From 666422bb2599dfb7d886002213fadd8484908ca5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 27 Jan 2012 14:38:11 +0100 Subject: [PATCH] testcd-root: disable tty1 login console in runlevel 5 also for this platform --- platforms/testcd-root/post.inc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platforms/testcd-root/post.inc.sh b/platforms/testcd-root/post.inc.sh index 8bc4b68..1d9a608 100644 --- a/platforms/testcd-root/post.inc.sh +++ b/platforms/testcd-root/post.inc.sh @@ -6,7 +6,8 @@ # change inittab so it opens tty root shells instead of asking for login # echo "Forcing \`inittab' to open tty root shells with no login..." -sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab +sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty1,' $MOUNTDIR/etc/inittab +sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab # configure for runlevel 5 boot