summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/busybox/busybox.inc11
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index acd2bfbcff..2f269534bb 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -280,10 +280,15 @@ inherit update-alternatives
280 280
281ALTERNATIVE_PRIORITY = "50" 281ALTERNATIVE_PRIORITY = "50"
282 282
283ALTERNATIVE_${PN}-syslog = "syslog-init syslog-startup-conf" 283ALTERNATIVE_${PN}-syslog = "syslog-startup-conf"
284 284
285ALTERNATIVE_LINK_NAME[syslog-init] = "${sysconfdir}/init.d/syslog" 285python () {
286ALTERNATIVE_TARGET[syslog-init] = "${sysconfdir}/init.d/syslog.${BPN}" 286 if 'sysvinit' in d.getVar("DISTRO_FEATURES", True).split():
287 pn = d.getVar('PN', True)
288 d.appendVar('ALTERNATIVE_%s-syslog' % (pn), ' syslog-init')
289 d.setVarFlag('ALTERNATIVE_LINK_NAME', 'syslog-init', '%s/init.d/syslog' % (d.getVar('sysconfdir', True)))
290 d.setVarFlag('ALTERNATIVE_TARGET', 'syslog-init', '%s/init.d/syslog.%s' % (d.getVar('sysconfdir', True), d.getVar('BPN', True)))
291}
287 292
288ALTERNATIVE_LINK_NAME[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf" 293ALTERNATIVE_LINK_NAME[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf"
289ALTERNATIVE_TARGET[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf.${BPN}" 294ALTERNATIVE_TARGET[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf.${BPN}"