aboutsummaryrefslogtreecommitdiffstats
path: root/initramfs-init.in
diff options
context:
space:
mode:
authorEugene Rush <rush.zlo@gmail.com>2013-02-28 11:51:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-02-28 12:32:45 +0000
commitd2f2f2306bc561b752a710e9d3a2f65301741683 (patch)
tree20806f6e26c0cdee320881e655c812ba9b7a0610 /initramfs-init.in
parent4081189240dac223f8a9e1521b5445cdbe0007c7 (diff)
downloadmkinitfs-d2f2f2306bc561b752a710e9d3a2f65301741683.tar.bz2
mkinitfs-d2f2f2306bc561b752a710e9d3a2f65301741683.tar.xz
skip "current console" from beign added to inittab
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-xinitramfs-init.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index bbfd53e..3c05f81 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -191,6 +191,9 @@ setup_inittab_console(){
esac
shift
+ # skip "current console" from beign added to inittab
+ [ "$tty" = "tty0" ] && continue
+
# do nothing if inittab already have the tty set up
grep -q "^$tty:" $sysroot/etc/inittab && continue
echo "# enable login on alternative console" >> $sysroot/etc/inittab