From: Amadeusz Żołnowski Date: Fri, 25 Mar 2011 14:56:50 +0000 (+0100) Subject: dracut-logger: /dev/log is socket, not character device X-Git-Tag: 009~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d60b71e8e8fa72fb124988d9cb0e521ddf24f48e;p=thirdparty%2Fdracut.git dracut-logger: /dev/log is socket, not character device Fixed typo in error message by the way. --- 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