From 44ce0ed3740e274a494d4724cac53f99deca41b3 Mon Sep 17 00:00:00 2001 From: xSmurf Date: Tue, 22 Sep 2015 21:28:09 +0000 Subject: [PATCH] Added inittab fix for virtual ttys --- board/coreboot/post_build.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/board/coreboot/post_build.sh b/board/coreboot/post_build.sh index d13ae7e..67fef3c 100755 --- a/board/coreboot/post_build.sh +++ b/board/coreboot/post_build.sh @@ -6,12 +6,22 @@ BOARD_DIR="$BR2_EXTERNAL/board/coreboot" # Copy the rootfs additions if [ -d "$BOARD_DIR/rootfs-additions" ]; then - echo "Copying rootfs additions..." + echo "Copying rootfs additions ..." rsync -va $BOARD_DIR/rootfs-additions/* $TARGET_DIR/ else - echo "No rootfs additions found..." + echo "No rootfs additions found !" fi # Disable dropbear server -echo "Disabling dropbear server..." +echo "Disabling dropbear server ..." chmod a-x $TARGET_DIR/etc/init.d/S50dropbear + +# Enable virtual terminals in inittab +echo "Enabling virtual terminal 2..8 ..." +sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty8::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab" +sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty7::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab" +sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty6::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab" +sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty5::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab" +sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty4::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab" +sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty3::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab" +sed -E -i 's/GENERIC_SERIAL/GENERIC_SERIAL\ntty2::askfirst:-\/bin\/login/' "$TARGET_DIR/etc/inittab"