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.
 
 
 
 
 
 

22 lines
498 B

  1. #!/bin/bash
  2. # postinst script for gpsd-tools
  3. set -e
  4. if [ "$1" = "configure" ] ; then
  5. #remove the old xgps config file
  6. if dpkg --compare-versions "$2" lt "2.91"; then
  7. [ ! -f /etc/X11/app-defaults/xgps ] || rm -f /etc/X11/app-defaults/xgps || true
  8. fi
  9. #remove the old xgpsspeed config file
  10. if dpkg --compare-versions "$2" lt "2.91-2"; then
  11. [ ! -f /etc/X11/app-defaults/xgpsspeed ] || rm -f /etc/X11/app-defaults/xgpsspeed || true
  12. fi
  13. fi
  14. #DEBHELPER#
  15. exit 0