repo.or.cz
/
barry.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
- applied Folder support patch from Brian Edginton
[barry.git]
/
hotplug
/
barry
blob
8f1b0e4b727b6e2f68e3e6ccf858cc819239ed20
1
#!/bin/bash
2
3
# Based on the libgphoto2-2 script.
4
5
GROUP
=
barry
6
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
"
13
fi
14
fi
15