Regardless, I think this might be useful to someone else, so I put it here. This is a quick hack on bashmount-1.6.2 which allows it to run udisks-less, using udevil as the backend. This will be of use to those running a *kit-less system without udisks, since the only frontend to udevil seems to be spacefm, which is not always convenient.

Beware that this is, as said, a quick hack. That means I only tested the features I use, namely:

usb device detection

usb device info

usb device mount/umount

I didn't test at all cdrom/dvd handling, nor any other feature. So, this probably will have some quirks here and there. I am willing to fix issues if someone reports them, as time permits. This is a simple bash script, so you can just put it somewhere in your path and be done. I'll probably hack the bashmount ebuild at some point to support this as an option, but don't hold your breath for it

Oh, almost forgot, this relies in the --enumerate-device-files feature of devmon (devmon is part of udevil). That feature is only available from udevil-0.4.2, which is currently keyworded ~x86 and ~amd64. So, if you want to use this script you will have to keyword udevil conveniently and emerge the 0.4.3 version, which is in portage. 0.4.1 WILL NOT WORK.

# Copyright (C) 2011 Jamie Nguyen
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License v2 as published by the
# Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA

# arg 1: integer
# The size of the device/partition is given in bytes, so let's convert that
# to something more readable. Rounding done in bash is not accurate at all
# but we'll mitigate that by only rounding when the numbers get quite large.
convert_size() {
local -i old_size="${1}"
local new_size=

# arg 1: device file
# Here we check if the device actually exists, just in case the list of
# available devices has not been refreshed for a while.
check_device() {
devmon --enumerate-device-files | grep -ow ^${1}$ >/dev/null 2>&1

info_mounted="$(info_mounted "${1}")"
if (( !info_mounted )); then
printf '\n'
msg "Ejecting ${1} ..."
printf '\n'
udevil --eject ${1}
# Give the device some time to eject. If we don't then sometimes
# the ejected device will still be present when returning to the
# main menu.
sleep 2
fi

enter_to_continue
}
# arg 1: device file
# Open the device with the filemanager specified in the configuration file,
# mounting with a call to action_mount if required.
action_open() {
local -i info_mounted=

(( run_post_unmount )) && post_unmount ${1}
}
fancy_sort() {
# This is a very hacky way to sort devices so that /dev/sdc11 wont come
# before /dev/sdc2, which happens due to a shortcoming of the sort command.

# We won't tell bash that partition_number is a number, otherwise it
# breaks when leading zeros are added (interpreted as hex).
local devname= devmajor= partition_number=
local -i array_position=

# First lets put a leading zero in front of single digits (sdc1 -> sdc01).
# We are going to ignore /dev/mmcblk*p* devices... too complicated to sort
# and not really worthwhile since most users won't have 10 such devices.
for devname in ${removable[@]}; do
if [[ "${devname}" =~ ^/dev/dm-[0-9]+ ]]; then
devmajor="${devname%%[0-9]*}"
elif [[ "${devname}" =~ ^/dev/fd[0-9]+ ]]; then
devmajor="${devname%%[0-9]*}"
elif [[ "${devname}" =~ ^/dev/sd[a-z][0-9]+ ]]; then
devmajor="${devname%%[0-9]*}"
else
(( ++array_position )); continue
fi

# Here we provide a submenu for each device, which also displays any custom
# commands that have been set.
submenu() {
local devmajor= info_label= info_model= info_mountpath= info_vendor=
local info_device_size= info_media= info_partition_size= info_type=
local -i info_mounted= is_optical=

EDITED:so finally I hacked an ebuild for this. It has two use flags, namely, udisks and udevil. You can only select one at a time, obviously. You can fetch it here_________________Gentoo Handbook | My website

It's not like I am going to fork off new project or something. I just wanted to differentiate it from unpatched bashmount, so that the original author doesn't get blamed if this thing I made eats your kitten or something.

If there's any interest in it at all (and nothing points to that) I'd rather try to get in touch with the original authoer and get proper udevil support into bashmount, since the differences are minimal and very trivial to handle._________________Gentoo Handbook | My website