nsh scripting:source (.) cmd supported

This commit is contained in:
David Sidrane
2020-06-22 13:53:01 -07:00
committed by Daniel Agar
parent df30f29a55
commit 185ffe9e13
93 changed files with 121 additions and 121 deletions

View File

@@ -74,7 +74,7 @@ class RCOutput():
result += "\n"
result += "if [ ${AIRFRAME} != none ]\n"
result += "then\n"
result += "\tsh /etc/init.d/airframes/${AIRFRAME}\n"
result += "\t. /etc/init.d/airframes/${AIRFRAME}\n"
if not post_start:
result += "else\n"
result += "\techo \"ERROR [init] No file matches SYS_AUTOSTART value found in : /etc/init.d/airframes\"\n"

View File

@@ -11,7 +11,7 @@ set PRT {{ command.port_param_name }}
set i {{ command.instance }}
{% endif -%}
# get the device & baudrate
sh $PRT_F
. $PRT_F
if [ $SERIAL_DEV != none ]; then
{% if not constrained_flash -%}
echo "Starting {{ command.label }} on $SERIAL_DEV"