Comment 0 for bug 1873415

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

gpsd needs to ship packaging/deb/etc_default_gpsd as default instead of debian/gpsd.default

Newer options are only added here:
$ cat packaging/deb/etc_default_gpsd
# Default settings for gpsd.
# Please do not edit this file directly - use `dpkg-reconfigure gpsd' to
# change the options.
START_DAEMON="true"
GPSD_OPTIONS=""
DEVICES=""
USBAUTO="true"
GPSD_SOCKET="/var/run/gpsd.sock"

But
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES=""

# Other options you want to pass to gpsd
GPSD_OPTIONS=""

Some scripts depend on that e.g.
ubuntu@ubuntu:~$ cat /lib/systemd/system/gpsdctl@.service
...
ExecStart=/bin/sh -c "[ \"$USBAUTO\" = true ] && /usr/sbin/gpsdctl add /dev/%I || :"
ExecStop=/bin/sh -c "[ \"$USBAUTO\" = true ] && /usr/sbin/gpsdctl remove /dev/%I || :