diff options
Diffstat (limited to 'extra/sane/sane.install')
-rw-r--r-- | extra/sane/sane.install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/sane/sane.install b/extra/sane/sane.install new file mode 100644 index 000000000..850bd3255 --- /dev/null +++ b/extra/sane/sane.install @@ -0,0 +1,14 @@ +# arg 1: the new package version +post_install() { +getent group scanner >/dev/null || usr/sbin/groupadd -g 96 scanner + /bin/cat <<THEEND +NOTE +---- +Add your user to group 'scanner' to use scanner devices. +THEEND +} + +# arg 1: the old package version +pre_remove() { + usr/sbin/groupdel scanner &>/dev/null +} |