summarylogtreecommitdiffstats
path: root/klog.sv.run
blob: 22398aee4fdc8e53549fc1a2af24b7bef5673e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

svname=kernel

if [ ! -d /var/log/$svname ]
then
    mkdir /var/log/$svname
    chown root:root /var/log/$svname
    chmod 700 /var/log/$svname
fi

exec < /proc/kmsg svlogd -tt /var/log/$svname