On Sat, Feb 26, 2011 at 5:53 PM, Hauke Laging
> dev_device="${DEVICE//proc/dev}"
> chgrp "${GROUP}" "${dev_device}"
> chmod g+rw "${dev_device}"

Thanks for the suggestion. However, $DEVICE isn't populated at all,
although the udev rule appears to be triggering. My script now
contains:

#!/bin/bash
GROUP=scard
echo "${DEVICE}" > /tmp/gnupg-ccid.log
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
    dev_device="${DEVICE//proc/dev}"
    chgrp "${GROUP}" "${dev_device}"
    chmod g+rw "${dev_device}"
fi

but the log file always ends up with a blank line. So, no DEVICE
variable is being exported by udev, as far as I can tell.

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to