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:
parent
db14ffd17b
commit
074b580797
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue