pre_install() {
  if ! getent group plugdev >/dev/null; then
    groupadd --system plugdev
  fi
}

post_install() {
  udevadm control --reload-rules
  echo "To be able to use this application, user must be in the plugdev group."
}
