sitl_run.sh: fix $rootfs not set (needed for efk2 replay)

This commit is contained in:
Beat Küng 2016-09-29 10:07:00 +02:00 committed by Lorenz Meier
parent bb61144efc
commit 1eca97757c
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ echo build_path: $build_path
working_dir=`pwd`
sitl_bin=$build_path/src/firmware/posix/px4
rootfs=$build_path/tmp/rootfs
if [ "$chroot" == "1" ]
then
@ -95,6 +96,7 @@ then
# Check if we need to creat a param file to allow user to change parameters
if ! [ -f "$rootfs/replay_params.txt" ]
then
mkdir -p $rootfs
touch $rootfs/replay_params.txt
fi
fi