ROMFS:Use . for (source) and ${R} for pathing

init.d-posix:rcS Quiet Shell check warning
This commit is contained in:
David Sidrane
2020-10-14 13:15:02 -07:00
committed by Daniel Agar
parent 78221ee3d2
commit b9319b3843
126 changed files with 162 additions and 157 deletions
+5 -4
View File
@@ -14,7 +14,7 @@ set +e
# NOTE: COMMENT LINES ARE REMOVED BEFORE STORED IN ROMFS.
#
#------------------------------------------------------------------------------
set R /
#
# Mount the procfs.
#
@@ -57,7 +57,7 @@ fi
#
# Optional board defaults: rc.board_defaults
#
set BOARD_RC_DEFAULTS /etc/init.d/rc.board_defaults
set BOARD_RC_DEFAULTS ${R}etc/init.d/rc.board_defaults
if [ -f $BOARD_RC_DEFAULTS ]
then
echo "Board defaults: ${BOARD_RC_DEFAULTS}"
@@ -83,7 +83,7 @@ fi
#
# board sensors: rc.sensors
#
set BOARD_RC_SENSORS /etc/init.d/rc.board_sensors
set BOARD_RC_SENSORS ${R}etc/init.d/rc.board_sensors
if [ -f $BOARD_RC_SENSORS ]
then
echo "Board sensors: ${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
#
. /etc/init.d/rc.serial
. ${R}etc/init.d/rc.serial
# Check for flow sensor
if param compare SENS_EN_PX4FLOW 1
@@ -104,3 +104,4 @@ then
fi
uavcannode start
unset R
@@ -7,6 +7,6 @@
# @maintainer Julian Oes <julian@oes.ch>
#
sh /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
set MIXER quad_w
@@ -6,7 +6,7 @@
# @type Quadrotor
#
sh /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then
@@ -6,6 +6,6 @@
# @type Quadrotor
#
sh /etc/init.d/airframes/4016_holybro_px4vision
. ${R}etc/init.d/airframes/4016_holybro_px4vision
set MIXER quad_x
@@ -5,7 +5,7 @@
# @type Quadrotor Wide
#
sh /etc/init.d-posix/airframes/10016_iris
. ${R}etc/init.d-posix/airframes/10016_iris
if [ $AUTOCNF = yes ]
then
@@ -5,7 +5,7 @@
# @type Quadrotor Wide
#
sh /etc/init.d-posix/airframes/10016_iris
. ${R}etc/init.d-posix/airframes/10016_iris
if [ $AUTOCNF = yes ]
then
@@ -5,7 +5,7 @@
# @type Quadrotor Wide
#
sh /etc/init.d-posix/airframes/10016_iris
. ${R}etc/init.d-posix/airframes/10016_iris
if [ $AUTOCNF = yes ]
then
@@ -5,7 +5,7 @@
# @type Quadrotor Wide
#
sh /etc/init.d-posix/airframes/10016_iris
. ${R}etc/init.d-posix/airframes/10016_iris
if [ $AUTOCNF = yes ]
then
@@ -5,7 +5,7 @@
# @type Quadrotor
#
sh /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then
@@ -5,7 +5,7 @@
# @type Quadrotor Wide
#
sh /etc/init.d-posix/airframes/10016_iris
. ${R}etc/init.d-posix/airframes/10016_iris
if [ $AUTOCNF = yes ]
then
@@ -5,4 +5,4 @@
# @type Quadrotor Wide
#
sh /etc/init.d-posix/airframes/10016_iris
. ${R}etc/init.d-posix/airframes/10016_iris
@@ -5,7 +5,7 @@
# @type Quadrotor Wide
#
sh /etc/init.d-posix/airframes/10016_iris
. ${R}etc/init.d-posix/airframes/10016_iris
if [ $AUTOCNF = yes ]
then
@@ -5,7 +5,7 @@
# @type Quadrotor Wide
#
sh /etc/init.d-posix/airframes/10016_iris
. ${R}etc/init.d-posix/airframes/10016_iris
if [ $AUTOCNF = yes ]
then
@@ -5,7 +5,7 @@
# @type Quadrotor Wide
#
sh /etc/init.d-posix/airframes/10016_iris
. ${R}etc/init.d-posix/airframes/10016_iris
if [ $AUTOCNF = yes ]
then
@@ -3,7 +3,7 @@
# @name UUV
#
sh /etc/init.d/rc.uuv_defaults
. ${R}etc/init.d/rc.uuv_defaults
if [ $AUTOCNF = yes ]
then
@@ -3,7 +3,7 @@
# @name Hippocampus UUV
#
sh /etc/init.d/rc.uuv_defaults
. ${R}etc/init.d/rc.uuv_defaults
if [ $AUTOCNF = yes ]
then
@@ -3,7 +3,7 @@
# @name Plane SITL
#
sh /etc/init.d/rc.fw_defaults
. ${R}etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then
@@ -3,7 +3,7 @@
# @name Plane SITL with camera
#
sh /etc/init.d-posix/airframes/1030_plane
. ${R}etc/init.d-posix/airframes/1030_plane
if [ $AUTOCNF = yes ]
then
@@ -3,7 +3,7 @@
# @name Plane SITL with catapult
#
sh /etc/init.d-posix/airframes/1030_plane
. ${R}etc/init.d-posix/airframes/1030_plane
if [ $AUTOCNF = yes ]
then
@@ -3,7 +3,7 @@
# @name Plane SITL with downward facing LIDAR.
#
sh /etc/init.d-posix/airframes/1030_plane
. ${R}etc/init.d-posix/airframes/1030_plane
if [ $AUTOCNF = yes ]
then
@@ -3,7 +3,7 @@
# @name Plane SITL
#
sh /etc/init.d/rc.fw_defaults
. ${R}etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then
@@ -3,7 +3,7 @@
# @name Plane SITL
#
sh /etc/init.d/rc.fw_defaults
. ${R}etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then
@@ -3,7 +3,7 @@
# @name Plane SITL
#
sh /etc/init.d/rc.fw_defaults
. ${R}etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then
@@ -5,7 +5,7 @@
# @type Standard VTOL
#
sh /etc/init.d/rc.vtol_defaults
. ${R}etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then
@@ -5,7 +5,7 @@
# @type VTOL Quad Tailsitter
#
sh /etc/init.d/rc.vtol_defaults
. ${R}etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then
@@ -5,7 +5,7 @@
# @type VTOL Tiltrotor
#
sh /etc/init.d/rc.vtol_defaults
. ${R}etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then
@@ -3,7 +3,7 @@
# @name Rover
#
sh /etc/init.d/rc.rover_defaults
. ${R}etc/init.d/rc.rover_defaults
if [ $AUTOCNF = yes ]
then
@@ -4,7 +4,7 @@
# @type Rover
# @class Rover
sh /etc/init.d/rc.rover_defaults
. ${R}etc/init.d/rc.rover_defaults
if [ $AUTOCNF = yes ]
then
@@ -8,7 +8,7 @@
# @maintainer ThunderFly s.r.o.
#
sh /etc/init.d/rc.rover_defaults
. ${R}etc/init.d/rc.rover_defaults
if [ $AUTOCNF = yes ]
then
@@ -3,7 +3,7 @@
# @name Boat
#
sh /etc/init.d/rc.boat_defaults
. ${R}etc/init.d/rc.boat_defaults
if [ $AUTOCNF = yes ]
then
@@ -10,7 +10,7 @@
#
#
sh /etc/init.d/rc.fw_defaults
. ${R}etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then
@@ -9,7 +9,7 @@
# @output MAIN3 port thruster
# @output MAIN4 tail thruster
sh /etc/init.d/rc.airship_defaults
. ${R}etc/init.d/rc.airship_defaults
set MIXER cloudship
set PWM_OUT 1234
@@ -7,6 +7,6 @@
# @maintainer Jaeyoung Lim <jaeyoung@auterion.com>
#
sh /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
set MIXER quad_w
@@ -7,7 +7,7 @@
# @maintainer Jaeyoung Lim <jaeyoung@auterion.com>
#
sh /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then
@@ -5,7 +5,7 @@
# @type Hexarotor x
#
sh /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then
+7 -6
View File
@@ -15,7 +15,7 @@ SCRIPT_DIR="$(CDPATH='' cd -- "$(dirname -- "$0")" && pwd)"
# shellcheck disable=SC2154
if [ "$replay_mode" = "ekf2" ]
then
sh etc/init.d-posix/rc.replay
. ${R}etc/init.d-posix/rc.replay
exit 0
fi
@@ -176,7 +176,8 @@ fi
# Autostart ID
autostart_file=''
for f in etc/init.d-posix/airframes/"$(param show -q SYS_AUTOSTART)"_*
# shellcheck disable=SC2231
for f in ${R}etc/init.d-posix/airframes/"$(param show -q SYS_AUTOSTART)"_*
do
filename=$(basename "$f")
case "$filename" in
@@ -193,7 +194,7 @@ if [ ! -e "$autostart_file" ]; then
exit 1
fi
sh "$autostart_file"
. "$autostart_file"
#
# If autoconfig parameter was set, reset it and save parameters.
@@ -232,7 +233,7 @@ fi
# 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
. ${R}etc/init.d/rc.vehicle_setup
# GCS link
mavlink start -x -u $udp_gcs_port_local -r 4000000
@@ -253,7 +254,7 @@ mavlink start -x -u $udp_offboard_port_local -r 4000000 -m onboard -o $udp_offbo
mavlink start -x -u $udp_onboard_payload_port_local -r 4000 -f -m onboard -o $udp_onboard_payload_port_remote
# execute autostart post script if any
[ -e "$autostart_file".post ] && sh "$autostart_file".post
[ -e "$autostart_file".post ] && . "$autostart_file".post
# Run script to start logging
if param compare SYS_MC_EST_GROUP 2
@@ -262,7 +263,7 @@ then
else
set LOGGER_ARGS "-p vehicle_attitude"
fi
sh etc/init.d/rc.logging
. ${R}etc/init.d/rc.logging
mavlink boot_complete
replay trystart
@@ -15,7 +15,7 @@
# @maintainer Lorenz Meier <lorenz@px4.io>
#
. /etc/init.d/rc.fw_defaults
. ${R}etc/init.d/rc.fw_defaults
if [ $AUTOCNF = yes ]
then
@@ -23,7 +23,7 @@
# @board bitcraze_crazyflie exclude
#
. /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then
@@ -21,7 +21,7 @@
# @board bitcraze_crazyflie exclude
#
. /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then
@@ -23,7 +23,7 @@
# @board bitcraze_crazyflie exclude
#
. /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then
@@ -23,7 +23,7 @@
# @board bitcraze_crazyflie exclude
#
. /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then
@@ -8,7 +8,7 @@
# @maintainer Lorenz Meier <lorenz@px4.io>
#
. /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234
@@ -8,7 +8,7 @@
# @maintainer Roman Bapst <roman@auterion.com>
#
. /etc/init.d/rc.vtol_defaults
. ${R}etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then
@@ -22,7 +22,7 @@
# @board bitcraze_crazyflie exclude
#
. /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
set MIXER hexa_cox
@@ -8,7 +8,7 @@
# @maintainer Romain Chiappinelli <romain.chiap@gmail.com>
#
. /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
set MIXER quad_x
set PWM_OUT 1234
@@ -20,7 +20,7 @@
# @board bitcraze_crazyflie exclude
#
. /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
set MIXER octo_cox
@@ -20,7 +20,7 @@
# @board bitcraze_crazyflie exclude
#
. /etc/init.d/rc.mc_defaults
. ${R}etc/init.d/rc.mc_defaults
if [ $AUTOCNF = yes ]
then
@@ -18,7 +18,7 @@
# @output AUX5 Throttle
#
. /etc/init.d/rc.vtol_defaults
. ${R}etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then
@@ -13,7 +13,7 @@
# @maintainer Roman Bapst <roman@px4.io>
#
. /etc/init.d/rc.vtol_defaults
. ${R}etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then
@@ -22,7 +22,7 @@
# @board bitcraze_crazyflie exclude
#
. /etc/init.d/rc.vtol_defaults
. ${R}etc/init.d/rc.vtol_defaults
if [ $AUTOCNF = yes ]
then

Some files were not shown because too many files have changed in this diff Show More