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.
 
 
 
 
 
 

37 lines
621 B

  1. #! /bin/sh
  2. # postinst script for gpsd
  3. set -e
  4. . /usr/share/debconf/confmodule
  5. if [ "$1" = "configure" ] ; then
  6. # generate /etc/default/gpsd
  7. db_get gpsd/device
  8. DEVICES=$RET
  9. db_get gpsd/start_daemon
  10. START=$RET
  11. db_get gpsd/daemon_options
  12. OPTS=$RET
  13. db_get gpsd/autodetection
  14. USBAUTO=$RET
  15. cat <<EOF > /etc/default/gpsd
  16. # Default settings for gpsd.
  17. # Please do not edit this file directly - use `dpkg-reconfigure gpsd' to
  18. # change the options.
  19. DAEMON_OPTS="$OPTS"
  20. DEVICES="$DEVICES"
  21. USBAUTO="$USBAUTO"
  22. EOF
  23. fi
  24. #DEBHELPER#
  25. # tell debconf we are done. otherwise, it hangs waiting for the daemon.
  26. db_stop;
  27. exit 0