Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/hakchi/rootfs/etc/preinit.d/b0040_usb5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/hakchi/rootfs/etc/preinit.d/b0040_usb b/mod/hakchi/rootfs/etc/preinit.d/b0040_usb
index 156f711..4b0df43 100644
--- a/mod/hakchi/rootfs/etc/preinit.d/b0040_usb
+++ b/mod/hakchi/rootfs/etc/preinit.d/b0040_usb
@@ -19,10 +19,11 @@ checkUsbStorage(){
mount -o $ro "$disk" "$mountpoint/media" || return 1
local saves="$modname/saves"
- if [ -d "$mountpoint/media/$saves" ]; then
+
+ if [ -d "$mountpoint/media/$saves" ] || [ -d "$mountpoint/media/$modname/transfer" ] || [ "$cfg_usb_rw" == "y" ]; then
mount -o remount,$rw "$disk"
- mount_bind "$mountpoint/media/$saves" "$mountpoint/var/lib/clover/profiles/0"
fi
+ [ -d "$mountpoint/media/$saves" ] && mount_bind "$mountpoint/media/$saves" "$mountpoint/var/lib/clover/profiles/0"
return 0
}