blob: da434e08ebacec5696ce68900db8db198485d5a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
SYSTEMD_SERVICE_${PN} += " gpsdctl@.service"
RPROVIDES_${PN}-conf += "virtual/gpsd-conf"
do_install_append() {
# use the systemd compatible gpsd.rules
install -d ${D}/${sysconfdir}/udev/rules.d
install -m 0644 ${S}/gpsd.rules ${D}/${sysconfdir}/udev/rules.d/60-gpsd.rules
#support for systemd
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${S}/systemd/gpsdctl@.service ${D}${systemd_unitdir}/system
#autoprobe usb gps devices
echo 'USBAUTO="true"' >> ${D}${sysconfdir}/default/gpsd.default
}
|