From f2a98f965497ee89e2d59964b984fedd18a97e33 Mon Sep 17 00:00:00 2001 From: Ricardo Martins Date: Fri, 18 Dec 2015 10:56:01 +0000 Subject: [PATCH] lauv-aux-rpi: added option to use internal storage only. --- systems/lauv-aux/fs/etc/rc.d/lauv-storage-server | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/systems/lauv-aux/fs/etc/rc.d/lauv-storage-server b/systems/lauv-aux/fs/etc/rc.d/lauv-storage-server index 09ce4b0..4ccc62d 100644 --- a/systems/lauv-aux/fs/etc/rc.d/lauv-storage-server +++ b/systems/lauv-aux/fs/etc/rc.d/lauv-storage-server @@ -14,7 +14,6 @@ mount_storage() return 1 fi - mkdir -p "$cfg_lauv_storage_dir" mount -o rw,relatime "$bdev" "$cfg_lauv_storage_dir" 2> /dev/null if [ $? -ne 0 ]; then @@ -110,10 +109,14 @@ stop_nfs_server() start() { + mkdir -p "$cfg_lauv_storage_dir" + # Removable storage. - try_mount_storage \ - /sys/devices/ocp.3/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/host0/target0:0:0/0:0:0:0/block \ - 1 + if [ "$cfg_lauv_storage" != "internal" ]; then + try_mount_storage \ + /sys/devices/ocp.3/47400000.usb/47401c00.usb/musb-hdrc.1.auto/usb2/2-1/2-1:1.0/host0/target0:0:0/0:0:0:0/block \ + 1 + fi # Internal storage. if [ $? -ne 0 ]; then