blob: 754de6719217c7f8bedcb0a9b1a115186f43e6ca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
if [ -e /initramfs/plugin-conf/syslog.conf ]; then
. /initramfs/plugin-conf/syslog.conf
if [ $syslog_active -ne 0 ]; then
# TODO: maybe limit the maximum log file size via rotation?
modeprobe netconsole netconsole="@/,@${syslog_host}/"
params="-s 0"
if [ -n "$syslog_host" ]; then
if [ -n "${syslog_port}" ]; then
host="${syslog_host}:${syslog_port}"
else
host="${syslog_host}"
fi
params="$params -R ${host}"
fi
echo "syslogd $params ..."
syslogd $params >/dev/null 2>&1
klogd >/dev/null 2>&1
fi
fi
|