klogd: make it work on non-linux systems
authorJeremie Koenig <jk@jk.fr.eu.org>
Sun, 1 Aug 2010 01:01:44 +0000 (03:01 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 1 Aug 2010 01:01:44 +0000 (03:01 +0200)
commit63c2e7ecc0c7a72b2ed35475a8d18d3052039ce4
tree502795272936f6225a3ae268d40dfbf80027c89f
parent17662801ece60bbcc45bbc3cb1fc0fc3070d0d23
klogd: make it work on non-linux systems

The klogctl() interface allows changing the console loglevel, but is
Linux-specific. The more portable method of reading from _PATH_KLOG is
added as an alternative.

Adapted from the Debian kFreeBSD patch at:
http://svn.debian.org/viewsvn/d-i/people/slackydeb/kfreebsd/busybox/1.14/debian/klogd.diff

Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
sysklogd/Config.src
sysklogd/klogd.c