busybox: create /etc/default on do_install

* Currently, it's blindly assumed that /etc/default
  exists, when busybox-syslog gets copied into it.
  This only works by chance and only if CONFIG_HWCLOCK=y
  is set.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Andreas Oberritter 2012-02-16 02:06:55 +00:00 committed by Koen Kooi
parent 8a52afacc7
commit 143367e4f5

View File

@ -13,6 +13,7 @@ SYSTEMD_PACKAGES = "${PN}-syslog-systemd"
SYSTEMD_SERVICE_${PN}-syslog-systemd = "busybox-syslog.service"
do_install_append() {
install -d ${D}${sysconfdir}/default
install -m 0644 ${WORKDIR}/busybox-syslog.default ${D}${sysconfdir}/default/busybox-syslog
install -d ${D}${base_libdir}/systemd/system