View Single Post
Old 10-02-2014, 06:07 PM   #1758
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
not out of the box. We do not have a "script runner" menu plugin yet - it might be a good thing to add in the future. For now, you can hack the code for the filemanager menu to include your own mount/unmount commands, see file frontend/apps/filemanager/filemanagermenu.lua, there you can add at roughly line 170 something like this:
Code:
    table.insert(self.tab_item_table.tools, {
        text = "mount my partition",
        callback = function() os.execute("mount /dev/... /mnt/us/mountpoint") end
    })
    table.insert(self.tab_item_table.tools, {
        text = "unmount my partition",
        callback = function() os.execute("umount /dev/... /mnt/us/mountpoint") end
    })
hawhill is offline   Reply With Quote