initial import
This commit is contained in:
17
brltty/brltty.install
Normal file
17
brltty/brltty.install
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user