dracut-logger: initialize basic vars
authorHarald Hoyer <harald@redhat.com>
Mon, 25 Jul 2011 08:25:12 +0000 (10:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 25 Jul 2011 08:25:12 +0000 (10:25 +0200)
dracut-logger

index a5a3ee9..d85cbaf 100755 (executable)
@@ -107,14 +107,12 @@ __DRACUT_LOGGER__=1
 # See file doc comment for details.
 dlog_init() {
     local __oldumask
-    # Skip initialization if it's already done.
-    [ -n "$maxloglvl" ] && return 0
-
     local ret=0; local errmsg
-
     [ -z "$stdloglvl" ] && stdloglvl=4
     [ -z "$sysloglvl" ] && sysloglvl=0
     [ -z "$kmsgloglvl" ] && kmsgloglvl=0
+    # Skip initialization if it's already done.
+    [ -n "$maxloglvl" ] && return 0
 
     if [ -z "$fileloglvl" ]; then
         [ -w "$logfile" ] && fileloglvl=4 || fileloglvl=0