diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-04-11 10:57:18 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-04-11 10:57:18 -0300 |
commit | c07ca5cb71d277e9f2fd5c7b94cf8a0021bdfab5 (patch) | |
tree | d9d528762b726855cc356781c89abb1768c8be28 /testing/brltty/brltty.install | |
parent | ece2137c9569ec806aacf3740df98c399a51b21a (diff) | |
parent | 8119da2eaadf53531cad2aed70981ed4606340d6 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community-testing/sword/PKGBUILD
community/freedroidrpg/PKGBUILD
community/pgadmin3/PKGBUILD
libre/lame-libre/PKGBUILD
testing/dbus-core/PKGBUILD
testing/libwebkit/PKGBUILD
testing/tracker/PKGBUILD
testing/udev/0001-split-usr-always-read-config-files-from-lib-udev.patch
testing/udev/0002-reinstate-TIMEOUT-handling.patch
testing/udev/PKGBUILD
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 +} |