From 13a76fa25a67cc6d9e3a1192d5acc90d36a81585 Mon Sep 17 00:00:00 2001
From: Tristan Sloughter <t@crashfast.com>
Date: Fri, 27 Jun 2014 19:41:13 -0500
Subject: fix for running console on target system. meaning start.boot

---
 priv/templates/extended_bin.dtl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'priv')

diff --git a/priv/templates/extended_bin.dtl b/priv/templates/extended_bin.dtl
index d4b65d3..bfdc132 100644
--- a/priv/templates/extended_bin.dtl
+++ b/priv/templates/extended_bin.dtl
@@ -276,7 +276,7 @@ case "$1" in
         # For e.g. 'setup', one may even want to name another boot script.
         case "$1" in
             console)
-                if [ "$REL_DIR/$REL_NAME.boot" ]; then
+                if [ -f "$REL_DIR/$REL_NAME.boot" ]; then
                   BOOTFILE="$REL_DIR/$REL_NAME"
                 else
                   BOOTFILE="$REL_DIR/start"
-- 
cgit v1.2.3