summaryrefslogtreecommitdiff
path: root/extra/brltty/brltty.install
blob: 952ae58ff0ae572360117e141b5da31c785a615c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
}