summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox/busybox.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/busybox/busybox.inc')
-rw-r--r--meta/recipes-core/busybox/busybox.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index b8c009c1d3..24f9120a22 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -19,7 +19,7 @@ INITSCRIPT_PACKAGES = "${PN} ${PN}-httpd ${PN}-udhcpd"
19INITSCRIPT_NAME_${PN}-httpd = "busybox-httpd" 19INITSCRIPT_NAME_${PN}-httpd = "busybox-httpd"
20INITSCRIPT_NAME_${PN}-udhcpd = "busybox-udhcpd" 20INITSCRIPT_NAME_${PN}-udhcpd = "busybox-udhcpd"
21INITSCRIPT_NAME_${PN} = "syslog" 21INITSCRIPT_NAME_${PN} = "syslog"
22CONFFILES_${PN} = "${sysconfdir}/syslog.conf" 22CONFFILES_${PN} = "${sysconfdir}/syslog.conf.${PN}"
23 23
24# This disables the syslog startup links in slugos (see slugos-init) 24# This disables the syslog startup links in slugos (see slugos-init)
25INITSCRIPT_PARAMS_${PN}_slugos = "start 20 ." 25INITSCRIPT_PARAMS_${PN}_slugos = "start 20 ."
@@ -54,7 +54,7 @@ do_install () {
54 test -h ${D}/busybox${base_bindir}/sh && mv ${D}/busybox${base_bindir}/sh ${D}${base_bindir}/ 54 test -h ${D}/busybox${base_bindir}/sh && mv ${D}/busybox${base_bindir}/sh ${D}${base_bindir}/
55 55
56 install -m 0755 ${WORKDIR}/syslog ${D}${sysconfdir}/init.d/syslog.${PN} 56 install -m 0755 ${WORKDIR}/syslog ${D}${sysconfdir}/init.d/syslog.${PN}
57 install -m 644 ${WORKDIR}/syslog.conf ${D}${sysconfdir}/ 57 install -m 644 ${WORKDIR}/syslog.conf ${D}${sysconfdir}/syslog.conf.${PN}
58 if grep "CONFIG_CROND=y" ${WORKDIR}/defconfig; then 58 if grep "CONFIG_CROND=y" ${WORKDIR}/defconfig; then
59 # Move crond back to /usr/sbin/crond 59 # Move crond back to /usr/sbin/crond
60 install -d ${D}${sbindir} 60 install -d ${D}${sbindir}
@@ -109,6 +109,7 @@ pkg_postinst_${PN} () {
109 while read link; do case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; esac; bn=`basename $link`; update-alternatives --install $link $bn $to 50; done <$D/etc/busybox.links 109 while read link; do case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; esac; bn=`basename $link`; update-alternatives --install $link $bn $to 50; done <$D/etc/busybox.links
110 110
111 update-alternatives --install ${sysconfdir}/init.d/syslog syslog-init syslog.${PN} 50 111 update-alternatives --install ${sysconfdir}/init.d/syslog syslog-init syslog.${PN} 50
112 update-alternatives --install ${sysconfdir}/syslog.conf syslog-conf syslog.conf.${PN} 50
112} 113}
113 114
114pkg_prerm_${PN} () { 115pkg_prerm_${PN} () {
@@ -149,4 +150,6 @@ pkg_prerm_${PN} () {
149 fi 150 fi
150 151
151 update-alternatives --remove syslog-init syslog.${PN} 152 update-alternatives --remove syslog-init syslog.${PN}
153 update-alternatives --remove syslog-conf syslog.conf.${PN}
152} 154}
155