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)