summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/fiio/usb-fiio.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/fiio/usb-fiio.c')
-rw-r--r--firmware/target/hosted/fiio/usb-fiio.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/target/hosted/fiio/usb-fiio.c b/firmware/target/hosted/fiio/usb-fiio.c
index 3084ee0169..3b1a149eea 100644
--- a/firmware/target/hosted/fiio/usb-fiio.c
+++ b/firmware/target/hosted/fiio/usb-fiio.c
@@ -28,6 +28,11 @@
#include "power.h"
#include "power-fiio.h"
+#ifdef HAVE_MULTIDRIVE
+void cleanup_rbhome(void);
+void startup_rbhome(void);
+#endif
+
const char * const sysfs_usb_online =
"/sys/class/power_supply/usb/online";
@@ -68,6 +73,9 @@ void usb_enable(bool on)
*/
int disk_mount_all(void)
{
+#ifdef HAVE_MULTIDRIVE
+ startup_rbhome();
+#endif
return 1;
}
@@ -77,6 +85,10 @@ int disk_mount_all(void)
*/
int disk_unmount_all(void)
{
+#ifdef HAVE_MULTIDRIVE
+ cleanup_rbhome();
+#endif
+
return 1;
}