some fixups

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9931 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2007-01-24 20:54:57 +00:00
parent e678a334d1
commit 7d02b57a52

View File

@@ -25,7 +25,9 @@ GROUP=camera
# "usbcam" like this script.
#
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
[ -z "${DEVICE}" ] && DEVICE="${DEVNAME}"
if [ "${ACTION}" = "add" ] && [ -e "${DEVICE}" ]
then
chmod o-rwx "${DEVICE}"
chgrp "${GROUP}" "${DEVICE}"