mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:33:33 +08:00
posix shell: allow to run multiple instances
This commit is contained in:
@@ -43,7 +43,7 @@ while [ $n -le $sitl_num ]; do
|
||||
|
||||
pushd "$working_dir" &>/dev/null
|
||||
echo "starting instance $n in $(pwd)"
|
||||
sudo -b -u $user ../bin/px4 -d "$src_path" rcS >out.log 2>err.log
|
||||
sudo -b -u $user ../bin/px4 -i $n -d "$src_path" -s rcS >out.log 2>err.log
|
||||
popd &>/dev/null
|
||||
|
||||
n=$(($n + 1))
|
||||
|
||||
Reference in New Issue
Block a user