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

@ -61,7 +61,7 @@ set BOARD_RC_DEFAULTS /etc/init.d/rc.board_defaults
if [ -f $BOARD_RC_DEFAULTS ]
then
echo "Board defaults: ${BOARD_RC_DEFAULTS}"
sh $BOARD_RC_DEFAULTS
. $BOARD_RC_DEFAULTS
fi
unset BOARD_RC_DEFAULTS
@ -87,7 +87,7 @@ set BOARD_RC_SENSORS /etc/init.d/rc.board_sensors
if [ -f $BOARD_RC_SENSORS ]
then
echo "Board sensors: ${BOARD_RC_SENSORS}"
sh $BOARD_RC_SENSORS
. $BOARD_RC_SENSORS
fi
unset BOARD_RC_SENSORS
@ -95,7 +95,7 @@ unset BOARD_RC_SENSORS
# Start UART/Serial device drivers.
# Note: rc.serial is auto-generated from Tools/serial/generate_config.py
#
sh /etc/init.d/rc.serial
. /etc/init.d/rc.serial
# Check for flow sensor
if param compare SENS_EN_PX4FLOW 1

View File

@ -15,7 +15,7 @@
# @maintainer Lorenz Meier <lorenz@px4.io>
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -23,7 +23,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -21,7 +21,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -23,7 +23,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -23,7 +23,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -8,7 +8,7 @@
# @maintainer Lorenz Meier <lorenz@px4.io>
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -8,7 +8,7 @@
# @maintainer Roman Bapst <roman@auterion.com>
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -22,7 +22,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER hexa_cox

View File

@ -8,7 +8,7 @@
# @maintainer Romain Chiappinelli <romain.chiap@gmail.com>
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -20,7 +20,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER octo_cox

View File

@ -20,7 +20,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -18,7 +18,7 @@
# @output AUX5 Throttle
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -13,7 +13,7 @@
# @maintainer Roman Bapst <roman@px4.io>
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -22,7 +22,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -8,7 +8,7 @@
# @maintainer Roman Bapst <roman@px4.io>
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -21,7 +21,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -21,7 +21,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -19,7 +19,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -11,7 +11,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -11,7 +11,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -11,7 +11,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -12,7 +12,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -20,7 +20,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -17,7 +17,7 @@
# @output MAIN8 Pusher reverse channel
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -21,7 +21,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -24,7 +24,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -16,7 +16,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.vtol_defaults
. /etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -16,7 +16,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER tri_y_yaw+

View File

@ -16,7 +16,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER tri_y_yaw-

View File

@ -17,7 +17,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER coax
if [ $AUTOCNF = yes ]

View File

@ -18,7 +18,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
# Configure as helicopter (number 4 defined in commander_helper.cpp)
set MAV_TYPE 4

View File

@ -24,7 +24,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -22,7 +22,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -24,7 +24,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -24,7 +24,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -25,7 +25,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -14,7 +14,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.airship_defaults
. /etc/init.d/rc.airship_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -19,6 +19,6 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
set MIXER fw_generic_wing

View File

@ -20,7 +20,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -21,7 +21,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -19,7 +19,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -21,7 +21,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -19,7 +19,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -17,6 +17,6 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
set MIXER Viper

View File

@ -20,7 +20,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -21,7 +21,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -19,7 +19,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.fw_defaults
. /etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -20,7 +20,7 @@
# @maintainer Lorenz Meier <lorenz@px4.io>
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x

View File

@ -11,7 +11,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -11,7 +11,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -8,7 +8,7 @@
# @maintainer Lorenz Meier <lorenz@px4.io>
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -8,7 +8,7 @@
# @maintainer Lorenz Meier <lorenz@px4.io>
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -10,7 +10,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -11,7 +11,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -14,7 +14,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -17,7 +17,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -17,7 +17,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -11,7 +11,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -19,7 +19,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -22,7 +22,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -11,7 +11,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -21,7 +21,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_s250aq
set MAV_TYPE 2

View File

@ -14,7 +14,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -12,7 +12,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -12,7 +12,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -16,7 +16,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
#
# Load default params for this platform

View File

@ -21,7 +21,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -12,7 +12,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -16,7 +16,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -23,7 +23,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
#Parameters here:
param set LED_RGB_MAXBRT 8

View File

@ -23,7 +23,7 @@
echo "Executing 4250_teal script."
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -12,7 +12,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234

View File

@ -15,7 +15,7 @@
# @board px4_fmu-v5x exclude
# @board intel_aerofc-v1 exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_x_cw
set PWM_OUT 1234

View File

@ -17,7 +17,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.rover_defaults
. /etc/init.d/rc.rover_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -21,7 +21,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.rover_defaults
. /etc/init.d/rc.rover_defaults
#
# This section can be enabled once tuning parameters for this particular

View File

@ -19,7 +19,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.rover_defaults
. /etc/init.d/rc.rover_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -19,7 +19,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.rover_defaults
. /etc/init.d/rc.rover_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -19,7 +19,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.rover_defaults
. /etc/init.d/rc.rover_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -23,7 +23,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER quad_+

View File

@ -12,7 +12,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.uuv_defaults
. /etc/init.d/rc.uuv_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -12,7 +12,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.uuv_defaults
. /etc/init.d/rc.uuv_defaults
if [ $AUTOCNF = yes ]
then

View File

@ -22,7 +22,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER hexa_x

View File

@ -26,7 +26,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER hexa_x
set PWM_OUT 12345678

View File

@ -22,7 +22,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER hexa_+

View File

@ -24,7 +24,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER octo_x

View File

@ -24,7 +24,7 @@
# @board bitcraze_crazyflie exclude
#
sh /etc/init.d/rc.mc_defaults
. /etc/init.d/rc.mc_defaults
set MIXER octo_+

View File

@ -111,7 +111,7 @@ then
if [ $OUTPUT_MODE = io ]
then
sh /etc/init.d/rc.io
. /etc/init.d/rc.io
fi
#
@ -121,7 +121,7 @@ then
then
if [ $OUTPUT_MODE != io ]
then
sh /etc/init.d/rc.io
. /etc/init.d/rc.io
fi
fi
fi

View File

@ -26,10 +26,10 @@ then
param set MAV_TYPE ${MAV_TYPE}
# Load mixer and configure outputs.
sh /etc/init.d/rc.interface
. /etc/init.d/rc.interface
# Start standard fixedwing apps.
sh /etc/init.d/rc.fw_apps
. /etc/init.d/rc.fw_apps
fi
#
@ -78,10 +78,10 @@ then
param set MAV_TYPE ${MAV_TYPE}
# Load mixer and configure outputs.
sh /etc/init.d/rc.interface
. /etc/init.d/rc.interface
# Start standard multicopter apps.
sh /etc/init.d/rc.mc_apps
. /etc/init.d/rc.mc_apps
fi
#
@ -105,10 +105,10 @@ then
param set MAV_TYPE ${MAV_TYPE}
# Load mixer and configure outputs.
sh /etc/init.d/rc.interface
. /etc/init.d/rc.interface
# Start standard UGV apps.
sh /etc/init.d/rc.rover_apps
. /etc/init.d/rc.rover_apps
fi
#
@ -141,10 +141,10 @@ then
param set MAV_TYPE ${MAV_TYPE}
# Load mixer and configure outputs.
sh /etc/init.d/rc.interface
. /etc/init.d/rc.interface
# Start standard vtol apps.
sh /etc/init.d/rc.vtol_apps
. /etc/init.d/rc.vtol_apps
fi
#
@ -167,10 +167,10 @@ then
param set MAV_TYPE ${MAV_TYPE}
# Load mixer and configure outputs.
sh /etc/init.d/rc.interface
. /etc/init.d/rc.interface
# Start airship apps.
sh /etc/init.d/rc.airship_apps
. /etc/init.d/rc.airship_apps
fi
#
@ -184,10 +184,10 @@ then
fi
# Load mixer and configure outputs.
sh /etc/init.d/rc.interface
. /etc/init.d/rc.interface
# Start standard vtol apps.
sh /etc/init.d/rc.uuv_apps
. /etc/init.d/rc.uuv_apps
fi

View File

@ -152,7 +152,7 @@ fi
#
if [ -f $FRC ]
then
sh $FRC
. $FRC
else
#
@ -202,7 +202,7 @@ else
if [ -f $BOARD_RC_DEFAULTS ]
then
echo "Board defaults: ${BOARD_RC_DEFAULTS}"
sh $BOARD_RC_DEFAULTS
. $BOARD_RC_DEFAULTS
fi
unset BOARD_RC_DEFAULTS
@ -248,7 +248,7 @@ else
#
if ! param compare SYS_AUTOSTART 0
then
sh /etc/init.d/rc.autostart
. /etc/init.d/rc.autostart
fi
#
@ -257,7 +257,7 @@ else
if [ -f $FCONFIG ]
then
echo "Custom: ${FCONFIG}"
sh $FCONFIG
. $FCONFIG
fi
#
@ -368,11 +368,11 @@ else
if [ -f $BOARD_RC_SENSORS ]
then
echo "Board sensors: ${BOARD_RC_SENSORS}"
sh $BOARD_RC_SENSORS
. $BOARD_RC_SENSORS
fi
unset BOARD_RC_SENSORS
sh /etc/init.d/rc.sensors
. /etc/init.d/rc.sensors
if param compare -s BAT1_SOURCE 2
then
@ -459,7 +459,7 @@ else
if [ -f $BOARD_RC_MAVLINK ]
then
echo "Board extras: ${BOARD_RC_MAVLINK}"
sh $BOARD_RC_MAVLINK
. $BOARD_RC_MAVLINK
fi
unset BOARD_RC_MAVLINK
@ -467,7 +467,7 @@ else
# Start UART/Serial device drivers.
# Note: rc.serial is auto-generated from Tools/serial/generate_config.py
#
sh /etc/init.d/rc.serial
. /etc/init.d/rc.serial
if [ $IO_PRESENT = no ]
then
@ -480,7 +480,7 @@ else
# Note: rc.vehicle_setup is the entry point for rc.interface,
# rc.fw_apps, rc.mc_apps, rc.rover_apps, and rc.vtol_apps.
#
sh /etc/init.d/rc.vehicle_setup
. /etc/init.d/rc.vehicle_setup
# Camera capture driver
if param greater -s CAM_CAP_FBACK 0
@ -499,7 +499,7 @@ else
#
# Start a thermal calibration if required.
#
sh /etc/init.d/rc.thermal_cal
. /etc/init.d/rc.thermal_cal
#
# Start vmount to control mounts such as gimbals, disabled by default.
@ -528,7 +528,7 @@ else
if [ -f $BOARD_RC_EXTRAS ]
then
echo "Board extras: ${BOARD_RC_EXTRAS}"
sh $BOARD_RC_EXTRAS
. $BOARD_RC_EXTRAS
fi
unset BOARD_RC_EXTRAS
@ -538,20 +538,20 @@ else
if [ -f $FEXTRAS ]
then
echo "Addons script: ${FEXTRAS}"
sh $FEXTRAS
. $FEXTRAS
fi
#
# Start the logger.
#
sh /etc/init.d/rc.logging
. /etc/init.d/rc.logging
#
# Set additional parameters and env variables for selected AUTOSTART.
#
if ! param compare SYS_AUTOSTART 0
then
sh /etc/init.d/rc.autostart.post
. /etc/init.d/rc.autostart.post
fi
if ! param compare SYS_PARAM_VER ${PARAM_DEFAULTS_VER}

View File

@ -69,7 +69,7 @@ fi
if [ -f $BOARD_RC ]
then
echo "Board init: ${BOARD_RC}"
sh $BOARD_RC
. $BOARD_RC
fi
if [ -f /etc/extras/px4_io-v2_default.bin ]
@ -119,7 +119,7 @@ then
tests mount
fi
sh /etc/init.d/rc.sensors
. /etc/init.d/rc.sensors
ver all

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"