From c9be962f4cb4c1ce35ee87d501166927d8e938c9 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Thu, 11 Jun 2015 21:44:21 -0700 Subject: [PATCH] POSIX: Modified posix_run.sh to create rootfs dirs The default rootfs is now in: Build/posix_default.build/rootfs/ The subdirs fs/microsd and eeprom are now created if they do not exist. Signed-off-by: Mark Charlebois --- Tools/posix_run.sh | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/Tools/posix_run.sh b/Tools/posix_run.sh index fdeefb4a29..3a20dc3766 100755 --- a/Tools/posix_run.sh +++ b/Tools/posix_run.sh @@ -1,19 +1,5 @@ #!/bin/bash -if [ ! -d /fs/msdcard ] && [ ! -w /fs/msdcard ] - then - echo "Need to create/mount writable /fs/microsd" - echo "sudo mkdir -p /fs/msdcard" - echo "sudo chmod 777 /fs/msdcard" - exit 1 -fi - -if [ ! -d /eeprom ] && [ ! -w /eeprom ] - then - echo "Need to create/mount writable /eeprom" - echo "sudo mkdir -p /eeprom" - echo "sudo chmod 777 /eeprom" - exit 1 -fi - -Build/posix_default.build/mainapp posix-configs/posixtest/init/rc.S +mkdir -p Build/posix_default.build/rootfs/fs/microsd +mkdir -p Build/posix_default.build/rootfs/eeprom +cd Build/posix_default.build && ./mainapp ../../posix-configs/posixtest/init/rc.S