mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
nsh scripting:source (.) cmd supported
This commit is contained in:
committed by
Daniel Agar
parent
df30f29a55
commit
185ffe9e13
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user