posix shell: allow to run multiple instances

This commit is contained in:
Beat Küng
2018-08-08 21:09:39 +02:00
committed by Lorenz Meier
parent c0cac0594e
commit d05b268d19
11 changed files with 85 additions and 40 deletions
+1 -1
View File
@@ -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))