diff options
Diffstat (limited to 'meta-agl-profile-core/recipes-navigation/gpsd')
-rw-r--r-- | meta-agl-profile-core/recipes-navigation/gpsd/gpsd_%.bbappend | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-agl-profile-core/recipes-navigation/gpsd/gpsd_%.bbappend b/meta-agl-profile-core/recipes-navigation/gpsd/gpsd_%.bbappend new file mode 100644 index 000000000..af72aece9 --- /dev/null +++ b/meta-agl-profile-core/recipes-navigation/gpsd/gpsd_%.bbappend @@ -0,0 +1,14 @@ +SYSTEMD_SERVICE_${PN} += " gpsdctl@.service" + +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 +} |