diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/busybox/busybox.inc | 11 |
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 | ||
281 | ALTERNATIVE_PRIORITY = "50" | 281 | ALTERNATIVE_PRIORITY = "50" |
282 | 282 | ||
283 | ALTERNATIVE_${PN}-syslog = "syslog-init syslog-startup-conf" | 283 | ALTERNATIVE_${PN}-syslog = "syslog-startup-conf" |
284 | 284 | ||
285 | ALTERNATIVE_LINK_NAME[syslog-init] = "${sysconfdir}/init.d/syslog" | 285 | python () { |
286 | ALTERNATIVE_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 | ||
288 | ALTERNATIVE_LINK_NAME[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf" | 293 | ALTERNATIVE_LINK_NAME[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf" |
289 | ALTERNATIVE_TARGET[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf.${BPN}" | 294 | ALTERNATIVE_TARGET[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf.${BPN}" |