diff options
author | Eugene Rush <rush.zlo@gmail.com> | 2013-02-28 11:51:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-02-28 12:32:45 +0000 |
commit | d2f2f2306bc561b752a710e9d3a2f65301741683 (patch) | |
tree | 20806f6e26c0cdee320881e655c812ba9b7a0610 /initramfs-init.in | |
parent | 4081189240dac223f8a9e1521b5445cdbe0007c7 (diff) | |
download | mkinitfs-d2f2f2306bc561b752a710e9d3a2f65301741683.tar.bz2 mkinitfs-d2f2f2306bc561b752a710e9d3a2f65301741683.tar.xz |
skip "current console" from beign added to inittab
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-x | initramfs-init.in | 3 |
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 |