gpsd: add hotplug handling
authorFlorian Eckert <redacted>
Thu, 30 Jan 2025 10:55:19 +0000 (11:55 +0100)
committerFlorian Eckert <redacted>
Fri, 28 Feb 2025 07:13:00 +0000 (08:13 +0100)
commitd7fae1403012fbebd4f0399a8748312fa4d67143
tree5593b72545ad8c4f0914b4010e0a442fcf3ba92f
parent7ca3ffebffdca2ac3c4cde80501f4e372a4444c9
gpsd: add hotplug handling

The 'gpsd' offers the possibility to call the script '/etc/gpsd/device-hook'
when a GPS source was added or removed via gpsdctl.

In addition to the '/etc/gpsd/device-hook' call an event is now triggered
too after the 'gpsd' has started. This allows scripts to configurre 'gpsd'
receivers.

The following events are available for '/etc/hotplug.d/gpsd' scripts:

* ACTIVATE   via '/etc/gpsd/device-hook'
* DEACTIVATE via '/etc/gpsd/device-hook'
* STARTED    via '/etc/init.d/gpsd'

Signed-off-by: Florian Eckert <redacted>
utils/gpsd/Makefile
utils/gpsd/files/etc/gpsd/device-hook [new file with mode: 0644]
utils/gpsd/files/etc/hotplug.d/gpsd/00-debug [new file with mode: 0644]
utils/gpsd/files/gpsd.init
git clone https://git.99rst.org/PROJECT