Imported Debian patch 2.4.3-1
This commit is contained in:
parent
26fb71b504
commit
31a319d731
47 changed files with 3098 additions and 0 deletions
24
debian/hotplug
vendored
Normal file
24
debian/hotplug
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue