summaryrefslogtreecommitdiffstats
path: root/src/os-plugins/plugins/syslog/init-hooks/95-cleanup/syslog.sh
blob: 08076c34db6d1387916baf137da3481ab1b49b08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
if [ -e /initramfs/plugin-conf/syslog.conf ]; then
  . /initramfs/plugin-conf/syslog.conf
  if [ $syslog_active -ne 0 ] && [ -n "$syslog_host" ]; then
    # kill syslogd, as it is going to be replaced by system's syslog soon
    killall syslogd
    # remove links to boot.klog, as that will hang (I suppose that is 
    # because we already emptied /dev/kmsg)
    if [ -e /mnt/etc/init.d/boot.klog ]; then
      rm /mnt/etc/init.d/boot.d/*.klog
    fi
  fi
fi