mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
Don’t try to find autostart script if SYS_AUTOSTART = 0
This commit is contained in:
@@ -186,7 +186,12 @@ then
|
|||||||
#
|
#
|
||||||
# Set parameters and env variables for selected AUTOSTART
|
# Set parameters and env variables for selected AUTOSTART
|
||||||
#
|
#
|
||||||
sh /etc/init.d/rc.autostart
|
if param compare SYS_AUTOSTART 0
|
||||||
|
then
|
||||||
|
echo "[init] Don't try to find autostart script"
|
||||||
|
else
|
||||||
|
sh /etc/init.d/rc.autostart
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Override parameters from user configuration file
|
# Override parameters from user configuration file
|
||||||
|
|||||||
Reference in New Issue
Block a user