Imported Debian patch 2.4.3-1

This commit is contained in:
Arnaud Quette 2010-02-24 22:58:53 +01:00 committed by arnaud.quette@free.fr
parent 26fb71b504
commit 31a319d731
47 changed files with 3098 additions and 0 deletions

24
debian/hotplug vendored Normal file
View file

@ -0,0 +1,24 @@
#!/bin/bash
# taken from libgphoto2
GROUP=nut
# for previous udev versions
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
# for recent udev versions
if [ "$ACTION" = "add" ] && [ -r "$DEVNAME" ]
then
# check if $GROUP really exists
if getent group $GROUP > /dev/null; then
chmod 660 "$DEVNAME"
chown root:$GROUP "$DEVNAME"
fi
fi