summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinit.tuna.rc5
-rw-r--r--overlay/frameworks/base/core/res/res/xml/storage_list.xml5
2 files changed, 10 insertions, 0 deletions
diff --git a/init.tuna.rc b/init.tuna.rc
index 374e425..205bf43 100755
--- a/init.tuna.rc
+++ b/init.tuna.rc
@@ -15,6 +15,11 @@ on init
symlink /storage/emulated/legacy /storage/sdcard0
symlink /mnt/shell/emulated/0 /storage/emulated/legacy
+ # create directory for mounting usb drives
+ mkdir /storage/usbdisk 0666 system system
+ symlink /storage/usbdisk /mnt/usbdisk
+ symlink /mnt/usbdisk /usbdisk
+
on post-fs-data
mkdir /data/media 0770 media_rw media_rw
diff --git a/overlay/frameworks/base/core/res/res/xml/storage_list.xml b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
index 344fe1e..0f1eb45 100644
--- a/overlay/frameworks/base/core/res/res/xml/storage_list.xml
+++ b/overlay/frameworks/base/core/res/res/xml/storage_list.xml
@@ -25,4 +25,9 @@
android:storageDescription="@string/storage_internal"
android:emulated="true"
android:mtpReserve="100" />
+ <!-- external USB OTG storage -->
+ <storage android:mountPoint="/storage/usbdisk"
+ android:storageDescription="@string/storage_usb"
+ android:primary="false"
+ android:removable="true" />
</StorageList>