From d60b71e8e8fa72fb124988d9cb0e521ddf24f48e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Amadeusz=20=C5=BBo=C5=82nowski?= Date: Fri, 25 Mar 2011 15:56:50 +0100 Subject: [PATCH] dracut-logger: /dev/log is socket, not character device Fixed typo in error message by the way. --- dracut-logger | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dracut-logger b/dracut-logger index 7bd2a7cf1..3bcce8387 100755 --- a/dracut-logger +++ b/dracut-logger @@ -137,12 +137,12 @@ dlog_init() { fi if [ $sysloglvl -gt 0 ]; then - if ! [ -c /dev/log -a -w /dev/log ] || ! command -v logger >/dev/null + if ! [ -S /dev/log -a -w /dev/log ] || ! command -v logger >/dev/null then # We cannot log to syslog, so turn this facility off. sysloglvl=0 ret=1 - errmsg="No '/dev/log' or 'logger' not included for syslog logging" + errmsg="No '/dev/log' or 'logger' included for syslog logging" fi fi -- 2.47.3