From fd5dd3cd31cf778d58c0f2373c17027fa7073e1d Mon Sep 17 00:00:00 2001 From: Cosmin Gorgovan Date: Fri, 29 Apr 2016 15:31:26 +0100 Subject: [PATCH] First attempt to export the external SD data partition, then the internal one --- files/rc.local | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/files/rc.local b/files/rc.local index f59a670..fc7ef31 100755 --- a/files/rc.local +++ b/files/rc.local @@ -1,6 +1,11 @@ #!/bin/sh -e depmod -a -modprobe g_file_storage file=/dev/mmcblk0p3 + +DATA_PART=/dev/mmcblk1p3 +if [ ! -e $DATA_PART ]; then + DATA_PART=/dev/mmcblk0p3 +fi +modprobe g_file_storage file=$DATA_PART exit 0