summaryrefslogtreecommitdiff
path: root/extra/libgphoto2/libgphoto2.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libgphoto2/libgphoto2.install')
-rw-r--r--extra/libgphoto2/libgphoto2.install18
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
}