Devuan fork of gpsd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
548 B

  1. #! /bin/sh
  2. # postrm script for gpsd
  3. set -e
  4. case "$1" in
  5. purge)
  6. [ ! -f /etc/default/gpsd ] || rm /etc/default/gpsd
  7. if [ -x "$(command -v deluser)" ]; then
  8. deluser --quiet --system gpsd > /dev/null || true
  9. else
  10. echo >&2 "not removing gpsd system account because deluser command was not found"
  11. fi
  12. rm -rf /run/gpsd
  13. ;;
  14. remove|upgrade|failed-upgrade|disappear)
  15. ;;
  16. *)
  17. echo "postrm called with unknown argument \`$1'" >&2
  18. exit 1
  19. esac
  20. #DEBHELPER#
  21. exit 0