Hi jjjesss, thank you very much for this helpful scripts! I love them! I have changed them a little bit, because I want to "install" it in /usr/local/etc/amount not in /etc/amount. And I use vfs.usermount=1 and a mountdir in $HOME instead of /media. So I don't have to use sudo and can mount without it.jjjesss said:New update. Now two icons are created on the desktop when a drive is mounted. One is to unmount it and the another one is to explore the media with Thunar.
openthunar.sh can be customized to replace Thunar with whichever file manager.
BR
jjjesss said:Thanks should go to aragon, the guy who programed the 'amount' and 'amountd'. I only made a few hacks to work with xfce4.
kmoore134 said:This auto-mount script is quite handy, Thanks Aragon and jjjesss! I've begun to import it into our tree for PC-BSD 9, along with some modifications to make it support multiple WM's, icons, etc.
https://trac.pcbsd.org/changeset/11872
BTW what license is this code under? I'm assuming BSD, but I wanted to ask before marking it as such
kmoore134 said:This auto-mount script is quite handy, Thanks Aragon and jjjesss! I've begun to import it into our tree for PC-BSD 9, along with some modifications to make it support multiple WM's, icons, etc.
https://trac.pcbsd.org/changeset/11872
BTW what license is this code under? I'm assuming BSD, but I wanted to ask before marking it as such
kmoore134 said:BTW what license is this code under?
XRUN_DEPENDS= ${LOCALBASE}/bin/sudo:${PORTSDIR}/security/sudo
vfs.usermount=1
Not possible at this stage. If you want to use vfs.usermount without sudo, you will have to modify amount code. In which case you can modify the port's Makefile too.Columbo0815 said:Is it possible to make a "make config" menu for installing without sudo? Maybe there are users (here is one! ) that use vfs.usermount=1. So I dont need sudo...
Just out of curiosity, what's wrong with amd? On access mounting seems like a good idea to me.aragon said:I poked around for HAL-esque auto mounting setups, but they were all hacky or used amd(8) - not really ideal for hot plug storage devices.