diff options
author | root <root@rshg054.dnsready.net> | 2012-02-14 23:14:55 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-14 23:14:55 +0000 |
commit | 812b715ebd89fb9049df7000c721990084b525c6 (patch) | |
tree | 28d43e6e6913a90b83f44660108e44f7353d8c82 /extra/brltty/brltty.install | |
parent | 16e845de1bbf76ab48a02bfaa21730f45e6afaaa (diff) |
Tue Feb 14 23:14:55 UTC 2012
Diffstat (limited to 'extra/brltty/brltty.install')
-rw-r--r-- | extra/brltty/brltty.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/extra/brltty/brltty.install b/extra/brltty/brltty.install new file mode 100644 index 000000000..952ae58ff --- /dev/null +++ b/extra/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 +} |