mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 02:06:27 +08:00
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 <charlebm@gmail.com>
This commit is contained in:
+3
-17
@@ -1,19 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ ! -d /fs/msdcard ] && [ ! -w /fs/msdcard ]
|
mkdir -p Build/posix_default.build/rootfs/fs/microsd
|
||||||
then
|
mkdir -p Build/posix_default.build/rootfs/eeprom
|
||||||
echo "Need to create/mount writable /fs/microsd"
|
cd Build/posix_default.build && ./mainapp ../../posix-configs/posixtest/init/rc.S
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user