dracut-logger: /dev/log is socket, not character device

Fixed typo in error message by the way.
master
Amadeusz Żołnowski 2011-03-25 15:56:50 +01:00 committed by Harald Hoyer
parent d1ef3951f3
commit d60b71e8e8
1 changed files with 2 additions and 2 deletions

View File

@ -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