gpsd: fix /etc/default/gpsd ALTERNATIVES logic

The ALTERNATIVES logic for the /etc/default/gpsd file is broken,
specifying ALTERNATIVE_LINK without brackets. In addition, it refers to
ALTERNATIVE_PATH, which update-alternatives.bbclass doesn't use.

With this patch, /etc/default/gpsd correctly gets a default link
pointing to /etc/default/gpsd.default. Currently, no such link gets
created, and gpsd starts off disabled by default since it's missing this
config file.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Martin Kelly
2017-11-15 13:21:36 -08:00
committed by Armin Kuster
parent 5c79363f3f
commit 194f855b44
+2 -3
View File
@@ -136,6 +136,5 @@ SYSTEMD_SERVICE_${PN} = "${PN}.socket"
ALTERNATIVE_${PN} = "gpsd-defaults"
ALTERNATIVE_PATH = "${sysconfdir}/default/gpsd.default"
ALTERNATIVE_LINK = "${sysconfdir}/default/gpsd"
ALTERNATIVE_TARGET = "${sysconfdir}/default/gpsd.default"
ALTERNATIVE_LINK_NAME[gpsd-defaults] = "${sysconfdir}/default/gpsd"
ALTERNATIVE_TARGET[gpsd-defaults] = "${sysconfdir}/default/gpsd.default"