A minor correction to /etc/hotplug/usb/libgphoto2 is attached.

Regards,

Arthur.
#!/bin/bash

GROUP=camera

if [ "$ACTION" = "add" ] && [ -f "$DEVICE" ]
then
    # check if $GROUP really exists
    if getent group $GROUP > /dev/null; then
        chmod 660 "$DEVICE"
        chown root:$GROUP "$DEVICE"
    fi
fi
if [ "$ACTION" = "add" ] && [ -c "$DEVNAME" ]
then
    # check if $GROUP really exists
    if getent group $GROUP > /dev/null; then
        chmod 660 "$DEVNAME"
        chown root:$GROUP "$DEVNAME"
    fi
fi

Reply via email to