summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Rush <rush.zlo@gmail.com>2013-02-28 11:51:06 +0000
committerEugene Rush <rush.zlo@gmail.com>2013-02-28 11:51:06 +0000
commit3c0e00ff31dabeb3c16e67596e6d8aa60aa92b7d (patch)
tree70deb2b50fd7ca3493164e892494fbfc03b260de
parentd99ce467d1e7de90e8ec2766e16f39736064510b (diff)
downloadmkinitfs-3c0e00ff31dabeb3c16e67596e6d8aa60aa92b7d.tar.bz2
mkinitfs-3c0e00ff31dabeb3c16e67596e6d8aa60aa92b7d.tar.xz
skip "current console" from beign added to inittabrush
-rwxr-xr-xinitramfs-init.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index a481669..ea12787 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