Hello,

Is it in french but you can take an eye on it:
https://obsd4a.net/wiki/doku.php?id=system:hotplug-diskmount

here the sh script:

#!/bin/sh

DEVCLASS=${1}
DEVNAME=${2}
LOGIN="id_user"

case "${DEVCLASS}" in
        2)
        /usr/local/libexec/hotplug-diskmount attach -u "${LOGIN}" -m 0700 
"${DEVNAME}"
        ;;
esac





On 04/24/17 13:33, Edgar Pettijohn wrote:
I was thinking the script would inherit the users environment. Which isn't the 
case. :( I think there are a few ways to work around this. I just suck at shell 
scripting, so I guess I'll get some practice.


On Apr 23, 2017, 11:13 PM, at 11:13 PM, Jan Lambertz <jd.arb...@googlemail.com> 
wrote:
Hi,
i am not sure that the hotplug scripts are executed by the system user
of
the person that is sitting in front of the Computer. So, no rights to
files
or no display can be a Problem. How can the Computer know how inserted
that
device ?

Reply via email to