tzwrapper.cc: fixed use of iterator after erase
[barry.git] / hotplug / barry
blob8f1b0e4b727b6e2f68e3e6ccf858cc819239ed20
1 #!/bin/bash
3 # Based on the libgphoto2-2 script.
5 GROUP=barry
7 if [ "$ACTION" = "add" ] && [ -f "$DEVICE" ]
8 then
9 # check if $GROUP really exists
10 if getent group $GROUP > /dev/null; then
11 chmod 660 "$DEVICE"
12 chown root.$GROUP "$DEVICE"