From bc6b79bb55e662228c912736e11cb12e7404e1c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gon=C3=A7alves?= Date: Fri, 15 Mar 2019 20:09:05 +0000 Subject: [PATCH] rules/filesystem/fs/etc/rc.d/mount_sdcard_cm3: add boot script to mount external sdcard in /opt/lsts --- rules/filesystem/fs/etc/rc.d/mount_sdcard_cm3 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 rules/filesystem/fs/etc/rc.d/mount_sdcard_cm3 diff --git a/rules/filesystem/fs/etc/rc.d/mount_sdcard_cm3 b/rules/filesystem/fs/etc/rc.d/mount_sdcard_cm3 new file mode 100644 index 0000000..2590189 --- /dev/null +++ b/rules/filesystem/fs/etc/rc.d/mount_sdcard_cm3 @@ -0,0 +1,14 @@ +start() +{ + echo "* Mounting external sdcard in /opt/lsts *" + mount /dev/mmcblk1p1 /opt/lsts + mkdir -p /opt/lsts/glued + mkdir -p /opt/lsts/dune +} + +stop() +{ + echo "* Unmount external sdcard *" + umount /dev/mmcblk1p1 +} +