inittab: disable tty1 login in runlevel 5 in most targets
This commit is contained in:
parent
5a3b1b73f9
commit
ef2d4b4987
@ -6,7 +6,8 @@
|
|||||||
# change inittab so it opens tty root shells instead of asking for login
|
# change inittab so it opens tty root shells instead of asking for login
|
||||||
#
|
#
|
||||||
echo "Forcing \`inittab' to open tty root shells with no login..."
|
echo "Forcing \`inittab' to open tty root shells with no login..."
|
||||||
sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --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 --noclear tty\1,' $MOUNTDIR/etc/inittab
|
||||||
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
|
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
|
||||||
|
|
||||||
# make initramfs
|
# make initramfs
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
# change inittab so it opens tty root shells instead of asking for login
|
# change inittab so it opens tty root shells instead of asking for login
|
||||||
#
|
#
|
||||||
echo "Forcing \`inittab' to open tty root shells with no login..."
|
echo "Forcing \`inittab' to open tty root shells with no login..."
|
||||||
sed -i 's,^\([1-3]\):.*,\1:2345:respawn:/sbin/mingetty --autologin root --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 --noclear tty\1,' $MOUNTDIR/etc/inittab
|
||||||
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
|
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
|
||||||
|
|
||||||
# make initramfs
|
# make initramfs
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
# change inittab so it opens tty root shells instead of asking for login
|
# change inittab so it opens tty root shells instead of asking for login
|
||||||
#
|
#
|
||||||
echo "Forcing \`inittab' to open tty root shells with no 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
|
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
|
||||||
|
|
||||||
# configure for runlevel 5 boot
|
# configure for runlevel 5 boot
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
# change inittab so it opens tty root shells instead of asking for login
|
# change inittab so it opens tty root shells instead of asking for login
|
||||||
#
|
#
|
||||||
echo "Forcing \`inittab' to open tty root shells with no 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
|
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
|
||||||
|
|
||||||
# configure for runlevel 5 boot
|
# configure for runlevel 5 boot
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
# change inittab so it opens tty root shells instead of asking for login
|
# change inittab so it opens tty root shells instead of asking for login
|
||||||
#
|
#
|
||||||
echo "Forcing \`inittab' to open tty root shells with no 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
|
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
|
||||||
|
|
||||||
# configure for runlevel 5 boot
|
# configure for runlevel 5 boot
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
# change inittab so it opens tty root shells instead of asking for login
|
# change inittab so it opens tty root shells instead of asking for login
|
||||||
#
|
#
|
||||||
echo "Forcing \`inittab' to open tty root shells with no 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
|
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
|
||||||
|
|
||||||
# configure for runlevel 5 boot
|
# configure for runlevel 5 boot
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
# change inittab so it opens tty root shells instead of asking for login
|
# change inittab so it opens tty root shells instead of asking for login
|
||||||
#
|
#
|
||||||
echo "Forcing \`inittab' to open tty root shells with no 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
|
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
|
||||||
|
|
||||||
# configure for runlevel 5 boot
|
# configure for runlevel 5 boot
|
||||||
|
@ -6,7 +6,8 @@
|
|||||||
# change inittab so it opens tty root shells instead of asking for login
|
# change inittab so it opens tty root shells instead of asking for login
|
||||||
#
|
#
|
||||||
echo "Forcing \`inittab' to open tty root shells with no 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
|
sed -i '/^[4-6]:.*/d' $MOUNTDIR/etc/inittab
|
||||||
|
|
||||||
# configure for runlevel 5 boot
|
# configure for runlevel 5 boot
|
||||||
|
Loading…
Reference in New Issue
Block a user