From 823b648a48c6f9ff5aa044ac8c53d672ace27276 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Thu, 4 Oct 2012 20:36:00 -0500 Subject: [PATCH] ubuntu: finish script, not sure why serial was twice checked Signed-off-by: Robert Nelson --- scripts/ubuntu-finish.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/scripts/ubuntu-finish.sh b/scripts/ubuntu-finish.sh index 7582fe9..04ccf6c 100644 --- a/scripts/ubuntu-finish.sh +++ b/scripts/ubuntu-finish.sh @@ -100,16 +100,14 @@ if [ "x${boot_image}" == "xbootm" ] ; then fi if [ "x${serial_tty}" != "x" ] ; then - if [ "x${serial_tty}" != "x" ] ; then - cat > /etc/init/${serial_tty}.conf <<-__EOF__ - start on stopped rc RUNLEVEL=[2345] - stop on runlevel [!2345] + cat > /etc/init/${serial_tty}.conf <<-__EOF__ + start on stopped rc RUNLEVEL=[2345] + stop on runlevel [!2345] - respawn - exec /sbin/getty 115200 ${serial_tty} + respawn + exec /sbin/getty 115200 ${serial_tty} - __EOF__ - fi + __EOF__ fi if [ "x${boot_fstype}" == "xext2" ] ; then