From 4225447b96ade6a02b0813f4502e073e20087cbb Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Thu, 24 Jul 2014 21:12:57 -0500 Subject: [PATCH] debian-finish.sh: missing fi Signed-off-by: Robert Nelson --- lib/debian-finish.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/debian-finish.sh b/lib/debian-finish.sh index 56dc4b8..938784a 100644 --- a/lib/debian-finish.sh +++ b/lib/debian-finish.sh @@ -118,10 +118,11 @@ cat > /etc/init.d/generic-boot-script.sh <<-__EOF__ case "\$1" in start|reload|force-reload|restart) -if [ -f /boot/SOC.sh ] ; then - board=\$(grep board /boot/SOC.sh | awk -F"=" '{print \$2}') - if [ -f "/opt/scripts/boot/\${board}.sh" ] ; then - /bin/sh /opt/scripts/boot/\${board}.sh >/dev/null 2>&1 & + if [ -f /boot/SOC.sh ] ; then + board=\$(grep board /boot/SOC.sh | awk -F"=" '{print \$2}') + if [ -f "/opt/scripts/boot/\${board}.sh" ] ; then + /bin/sh /opt/scripts/boot/\${board}.sh >/dev/null 2>&1 & + fi fi ;; stop)