meta-sysmocom-bsp/recipes-core/busybox/busybox-systemd/busybox-syslog.default

13 lines
346 B
Plaintext

# 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