dracut-logger: initialize basic vars

master
Harald Hoyer 2011-07-25 10:25:12 +02:00
parent 7641c73dec
commit 3cd98a6094
1 changed files with 2 additions and 4 deletions

View File

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