diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-01-11 11:02:46 -0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2012-01-19 01:16:28 -0800 |
commit | 921dfd1a2bc6ad2867da13d2b669288f9788a088 (patch) | |
tree | b7ef31ba7e8876d36ae3a3d7358ea7035b82a3d9 /meta/recipes-core/busybox/files/syslog | |
parent | 5b2dcbde7290616104afe5f20c67f87dbc734939 (diff) | |
download | openembedded-core-921dfd1a2bc6ad2867da13d2b669288f9788a088.tar.gz openembedded-core-921dfd1a2bc6ad2867da13d2b669288f9788a088.tar.bz2 openembedded-core-921dfd1a2bc6ad2867da13d2b669288f9788a088.zip |
busybox: enable log level configuration in syslog-startup.conf and script
It's possible to configure busybox syslog to only log messages above a
certain level, expose this functionality through the syslog-startup.conf
and syslog init script.
Valid values are 1-8 inclusive.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/busybox/files/syslog')
-rw-r--r-- | meta/recipes-core/busybox/files/syslog | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/files/syslog b/meta/recipes-core/busybox/files/syslog index 0be412bbeb..deeea8ba65 100644 --- a/meta/recipes-core/busybox/files/syslog +++ b/meta/recipes-core/busybox/files/syslog @@ -40,6 +40,9 @@ if [ -f /etc/syslog-startup.conf ]; then if [ "$REDUCE" = "yes" ]; then SYSLOG_ARGS="$SYSLOG_ARGS -S" fi + if [ -n "$LOGLEVEL" ]; then + SYSLOG_ARGS="$SYSLOG_ARGS -l $LOGLEVEL" + fi else # default: log to 16K shm circular buffer SYSLOG_ARGS="-C" |