diff options
author | root <root@rshg054.dnsready.net> | 2012-03-12 00:01:32 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-12 00:01:32 +0000 |
commit | a6cb3ddef295c5feb4e03ee198dbb31cdf62d518 (patch) | |
tree | 4ea0c57a9a347779a3d69ebee2dc54d994a30235 /extra/libgphoto2/libgphoto2.install | |
parent | 4640048ddd1331c9f6fc14b8921ccecdb6b1ea11 (diff) |
Mon Mar 12 00:01:32 UTC 2012
Diffstat (limited to 'extra/libgphoto2/libgphoto2.install')
-rw-r--r-- | extra/libgphoto2/libgphoto2.install | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/extra/libgphoto2/libgphoto2.install b/extra/libgphoto2/libgphoto2.install index 3aee9ff8a..c7944414f 100644 --- a/extra/libgphoto2/libgphoto2.install +++ b/extra/libgphoto2/libgphoto2.install @@ -1,16 +1,6 @@ -post_install() { - getent group camera >/dev/null || usr/sbin/groupadd -g 97 camera - /bin/cat <<THEEND -NOTE ----- -Add your user to group 'camera' to use camera devices. -THEEND -} - post_upgrade() { - getent group camera >/dev/null || usr/sbin/groupadd -g 97 camera -} - -post_remove() { - usr/sbin/groupdel camera &>/dev/null +if [ "$(vercmp $2 2.14.13)" -lt 0 ]; then + groupdel camera &>/dev/null + echo "Users no longer need to be in the 'camera' group to use camera devices" +fi } |