From 63c2e7ecc0c7a72b2ed35475a8d18d3052039ce4 Mon Sep 17 00:00:00 2001 From: Jeremie Koenig Date: Sun, 1 Aug 2010 03:01:44 +0200 Subject: 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 Signed-off-by: Denys Vlasenko --- sysklogd/Config.src | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'sysklogd/Config.src') diff --git a/sysklogd/Config.src b/sysklogd/Config.src index 41c0d286b..1e5987275 100644 --- a/sysklogd/Config.src +++ b/sysklogd/Config.src @@ -109,7 +109,6 @@ config FEATURE_LOGREAD_REDUCED_LOCKING config KLOGD bool "klogd" default y - depends on PLATFORM_LINUX help klogd is a utility which intercepts and logs all messages from the Linux kernel and sends the messages @@ -117,6 +116,22 @@ config KLOGD you wish to record the messages produced by the kernel, you should enable this option. +config FEATURE_KLOGD_KLOGCTL + bool "Use the klogctl() interface" + default y + depends on KLOGD && PLATFORM_LINUX + help + The klogd applet supports two interfaces for reading + kernel messages. Linux provides the klogctl() interface + which allows reading messages from the kernel ring buffer + independently from the file system. + + If you answer 'N' here, klogd will use the more portable + approach of reading them from /proc or a device node. + However, this method requires the file to be available. + + If in doubt, say 'Y'. + config LOGGER bool "logger" default y -- cgit v1.2.3