diff options
author | root <root@rshg054.dnsready.net> | 2012-09-27 00:42:08 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-09-27 00:42:08 -0700 |
commit | bd8faf795abf6d91abdc52bc968829cc2efae4bb (patch) | |
tree | c073a5288d3917e9aa98d3762479ad083c5ceafe /testing/brltty/brltty.install | |
parent | 483f8b3ac46ac2d40e8cc2f9c25365741bebc791 (diff) |
Thu Sep 27 00:42:07 PDT 2012
Diffstat (limited to 'testing/brltty/brltty.install')
-rw-r--r-- | testing/brltty/brltty.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/brltty/brltty.install b/testing/brltty/brltty.install new file mode 100644 index 000000000..952ae58ff --- /dev/null +++ b/testing/brltty/brltty.install @@ -0,0 +1,20 @@ +post_install () { + getent group brlapi &>/dev/null || groupadd -r brlapi + if [ ! -e /etc/brlapi.key ]; then + mcookie >/etc/brlapi.key + chmod 0640 /etc/brlapi.key + chgrp brlapi /etc/brlapi.key + echo "Please add your user to the brlapi group." + fi +} + +post_upgrade () { + post_install +} + +post_remove () { + getent group brlapi >/dev/null 2>&1 && groupdel brlapi + if [ -e /etc/brlapi.key ]; then + rm -f /etc/brlapi.key + fi +} |