busybox: make it possible to have permanent logfiles

* bump the PRINC

[holger: Depending on some global settings /var/log will be a
symlink to "volatile". But when we log to a file we want it to
be persistent. So make sure /var/log is not pointing to volatile
but a real directory]
This commit is contained in:
Henning 2014-10-24 20:30:31 +02:00 committed by Holger Hans Peter Freyther
parent db14ffd17b
commit 074b580797
2 changed files with 11 additions and 1 deletions

View File

@ -1,2 +1,12 @@
# source the sysvinit configuration file
. /etc/syslog-startup.conf
# check if we want permanent log files and prepare /var/log
if [ "${DESTINATION}" = "buffer" -a ! -h /var/log ]; then
rm -rf /var/log
cd /var
ln -s volatile/log log
elif [ "${DESTINATION}" = "file" -a -h "/var/log" ]; then
rm -rf /var/log
mkdir /var/log
fi

View File

@ -1,6 +1,6 @@
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/busybox-${SYSMOCOM_ORIG_PV}:${SYSMOCOM}/files:"
PRINC = "22"
PRINC = "23"
SRC_URI += "file://busybox-ifplugd.sh \
file://ifplugd.sh"