Files
extra/brltty/brltty.install
2025-06-22 20:39:04 -05:00

18 lines
356 B
Plaintext

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() {
[ -e /etc/brlapi.key ] && rm -v /etc/brlapi.key
}