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.
 
 
 
 
 
 

42 lines
700 B

  1. #!/bin/sh
  2. set -e
  3. . /usr/share/debconf/confmodule
  4. if [ -s /etc/default/gpsd ] ; then
  5. . /etc/default/gpsd
  6. if [ -n "$START_DAEMON" ] ; then
  7. db_set gpsd/start_daemon "$START_DAEMON"
  8. fi
  9. if [ -n "$DAEMON_OPTS" ] ; then
  10. db_set gpsd/daemon_options "$DAEMON_OPTS"
  11. fi
  12. if [ -n "$DEVICES" ] ; then
  13. db_set gpsd/device "$DEVICES"
  14. fi
  15. if [ -n "$USBAUTO" ]; then
  16. db_set gpsd/autodetection "$USBAUTO"
  17. fi
  18. fi
  19. db_input medium gpsd/start_daemon || true
  20. db_go
  21. db_get gpsd/start_daemon
  22. START=$RET
  23. if [ "x$START" = "xtrue" ] ; then
  24. db_input medium gpsd/device || true
  25. db_go
  26. db_input medium gpsd/autodetection || true
  27. db_go
  28. db_input medium gpsd/daemon_options || true
  29. db_go
  30. fi