:: Re: [DNG] vdev - scanner
Page principale
Supprimer ce message
Répondre à ce message
Auteur: info at smallinnovations.nl
Date:  
À: dng
Sujet: Re: [DNG] vdev - scanner
On 31-08-16 16:38, fsmithred wrote:
> On 08/31/2016 07:17 AM, fsmithred wrote:
>> On 08/31/2016 05:03 AM, Ralph Ronnquist wrote:
> Our discussion in irc was productive. The following works with the stock
> permissions.sh (without the lines for setfacl). The acl does not get set,
> but the scanner works. And if I unplug and re-plug the usb cable, the
> scanner gets the next device number, and it works!
>
> cat /etc/vdev/actions/scanner.act
>
> [vdev-action]
> event=add
> path=^bus/usb/*/[001-999]
> OS_SUBSYSTEM=usb
> OS_TYPE=255/255/255
> VAR_PERMISSIONS_OWNER=root
> VAR_PERMISSIONS_GROUP=scanner
> VAR_PERMISSIONS_MODE=0664
> helper=permissions.sh
> if_exists=run
> daemonlet=true
>
> -fsr
>

And if you give the device free with a event=remove action file? Does it
then keep it's old device number with reconnecting?

Grtz

Nick