gpsd: migrate option device to a list devices
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 19 Feb 2025 08:31:02 +0000 (09:31 +0100)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Fri, 28 Feb 2025 07:13:00 +0000 (08:13 +0100)
commitace9f160ce2e414aa6872f2ff72efb65ba8f66d8
tree6173422236b1e1c6d765f2a3819c5ef85e275364
parente377d07afd05e4d14cc13a20b5cfeb3e1831f62d
gpsd: migrate option device to a list devices

More than one device can be added to the gpsd at startup. Currently the gpsd
service start script in OpenWrt treats this as an option with only one value.
To allow multiple devices to be specified, the uci 'option device' must be
removed and a new uci 'list devices' is added.

This change means that several devices can be specified at gpsd start with
the new uci 'list devices' configuration.

Running configurations in the field are migrated by a migration script.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
utils/gpsd/Makefile
utils/gpsd/files/etc/uci-defaults/50-gpsd-migrate-device [new file with mode: 0644]
utils/gpsd/files/gpsd.config
utils/gpsd/files/gpsd.init