From 6ba23cbe505d3cfbbcc7dc168c1fbc7a0759f089 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Wed, 15 Aug 2012 12:59:57 -0500 Subject: [PATCH] bug: serial got lucky this worked when testing as the id wasnt already in the file Signed-off-by: Robert Nelson --- scripts/debian-finish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/debian-finish.sh b/scripts/debian-finish.sh index 64ef4da..116a183 100644 --- a/scripts/debian-finish.sh +++ b/scripts/debian-finish.sh @@ -49,7 +49,7 @@ rm -f /boot/uboot/linux-image-*_1.0*_arm*.deb || true serial_tty=$(cat /boot/uboot/SOC.sh | grep serial_tty | awk -F"=" '{print $2}') if [ "x${serial_tty}" != "x" ] ; then - cat etc/inittab | grep -v '#' | grep SERIAL || echo "T2:23:respawn:/sbin/getty -L ${serial_tty} 115200 vt102" >> /etc/inittab && echo "#" >> /etc/inittab + cat etc/inittab | grep -v '#' | grep ${serial_tty} || echo "T2:23:respawn:/sbin/getty -L ${serial_tty} 115200 vt102" >> /etc/inittab && echo "#" >> /etc/inittab fi boot_fstype=$(cat /boot/uboot/SOC.sh | grep boot_fstype | awk -F"=" '{print $2}') if [ "x${boot_fstype}" == "xext2" ] ; then