]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-logger: /dev/log is socket, not character device
authorAmadeusz Żołnowski <aidecoe@aidecoe.name>
Fri, 25 Mar 2011 14:56:50 +0000 (15:56 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 25 Mar 2011 15:23:49 +0000 (16:23 +0100)
Fixed typo in error message by the way.

dracut-logger

index 7bd2a7cf16afd16521e05fd90dc0a7cc77562e12..3bcce8387fac5dbfdbccd7fd8286ceccee3f2c2d 100755 (executable)
@@ -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