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.
 
 
 
 
 
 

33 lines
717 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. ;;
  8. remove|upgrade|failed-upgrade|abort-install|disappear)
  9. ;;
  10. abort-upgrade)
  11. if dpkg --compare-versions "$2" lt 2.34; then
  12. dpkg-divert --package gpsd --add --rename \
  13. --divert /usr/bin/gpsd.gpsdrive /usr/bin/gpsd
  14. dpkg-divert --package gpsd --add --rename \
  15. --divert /usr/share/man/man1/gpsd.gpsdrive.1.gz \
  16. /usr/share/man/man1/gpsd.1.gz
  17. fi
  18. ;;
  19. *)
  20. echo "postrm called with unknown argument \`$1'" >&2
  21. exit 1
  22. esac
  23. #DEBHELPER#
  24. exit 0