From 1eca97757c67cd8f1a3e5834c9b3344131c0fdb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 29 Sep 2016 10:07:00 +0200 Subject: [PATCH] sitl_run.sh: fix $rootfs not set (needed for efk2 replay) --- Tools/sitl_run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/sitl_run.sh b/Tools/sitl_run.sh index 159a3a232b..3dbe53bb76 100755 --- a/Tools/sitl_run.sh +++ b/Tools/sitl_run.sh @@ -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