Hello,
Here is my auto-answer in case someone is interrested in having a menu shortcut to disconnect the Vero-4K external drive safely:
-
On Windows create a “Unmount.py” file with the following text content:
from subprocess import call
call([“udisks”, “–unmount”, “/dev/sda1”]) -
Install WinSCP and connect to the Vero. This post tells how to:
Is It Possible to Have a Shortcut Button Assigned to Eject USB HDD? - #12 by the_bo -
Copy the file to “/home/userscripts” (or wherever you want)
-
On the Vero-4K go to “Settings / Interface / Skin setup / Customize Home Menu” and add a shortcut where needed. Personnaly I want it in the sub-menu (left key) of the “Files” menu item.
-
Define Name : “Disconnect Drive”
-
Define Action with the following custom command:
RunScript("/home/userscripts/Unmount.py")
That’s it.
I have also added a “Connect Drive” shortcut with the same method : call([“udisks”, “–mount”, “/dev/sda1”]). But I guess someone will want a single script that connects or disconnects depending on the current status.
I wonder why the functionnality is not provided by Kodi or at least facilitated by an Addon.