#!/bin/bash

# Imported Mount Command from SpaceFM 0.9:

#`which sudo` mkdir -p "/mnt/`basename %v`" && `which sudo` chmod 777 "/mnt/`basename %v`"  && `which sudo` mount -o %o %v "/mnt/`basename %v`"
`which sudoq` sh -c 'mkdir -p "/mnt/`basename %v`" && chmod 777 "/mnt/`basename %v`"  && mount -o "%o" "%v" "/mnt/`basename "%v"`"'

# Enter mount command or leave blank for auto:


# # Examples: (remove # to enable a mount command)
#
# # udevil:
#     udevil mount -o '%o' %v
#
# # pmount: (does not accept mount options)
#     pmount %v
#
# # udisks v2:
#     udisksctl mount -b %v -o '%o'
#
# # udisks v1: (enable all three lines!)
#     fm_udisks=`udisks --mount %v --mount-options '%o' 2>&1`
#     echo "$fm_udisks"
#     [[ "$fm_udisks" = "${fm_udisks/ount failed:/}" ]]

