post_install () {
  [ ! -e /etc/brlapi.key ] && brltty-genkey
  echo "Please add your user to the brlapi group."
}

post_upgrade () {
  post_install
}

post_remove() {
  [ -e /etc/brlapi.key ] && rm -v /etc/brlapi.key
}
