Commit b23a0ed37847c53a7faaea7def6ec8a5ab2edcbc

Authored by Silvan Calarco
1 parent e152af91e7
Exists in master

inittab: disable tty1 login for runlevel 5

Showing 4 changed files with 8 additions and 4 deletions Side-by-side Diff

platforms/livecd-gnome-root/post.inc.sh
... ... @@ -6,7 +6,8 @@
6 6 # change inittab so it opens tty root shells instead of asking for login
7 7 #
8 8 echo "Forcing \`inittab' to open tty root shells with no login..."
9   -sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab
  9 +sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty1,' $MOUNTDIR/etc/inittab
  10 +sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab
10 11 sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
11 12  
12 13 # configure for runlevel 5 boot
platforms/livecd-light-root/post.inc.sh
... ... @@ -6,7 +6,8 @@
6 6 # change inittab so it opens tty root shells instead of asking for login
7 7 #
8 8 echo "Forcing \`inittab' to open tty root shells with no login..."
9   -sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab
  9 +sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty1,' $MOUNTDIR/etc/inittab
  10 +sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab
10 11 sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
11 12  
12 13 # configure for runlevel 5 boot
platforms/livecd-root/post.inc.sh
... ... @@ -6,7 +6,8 @@
6 6 # change inittab so it opens tty root shells instead of asking for login
7 7 #
8 8 echo "Forcing \`inittab' to open tty root shells with no login..."
9   -sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab
  9 +sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty1,' $MOUNTDIR/etc/inittab
  10 +sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab
10 11 sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
11 12  
12 13 # configure for runlevel 5 boot
platforms/livedvd-root/post.inc.sh
... ... @@ -6,7 +6,8 @@
6 6 # change inittab so it opens tty root shells instead of asking for login
7 7 #
8 8 echo "Forcing \`inittab' to open tty root shells with no login..."
9   -sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab
  9 +sed -i 's,^1:.*,1:234:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty1,' $MOUNTDIR/etc/inittab
  10 +sed -i 's,^\([2-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --loginprog /sbin/login.live --noclear tty\1,' $MOUNTDIR/etc/inittab
10 11 sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
11 12  
12 13 # configure for runlevel 5 boot