From c0dc4c5d1ef10842341d57c45092a72ea5d39af7 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 17 Jul 2009 10:13:01 +0200 Subject: [PATCH] dracut-lib: fixed quiet argument parsing --- modules.d/99base/dracut-lib.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index 235e313e..f9182cfd 100644 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -48,10 +48,13 @@ warn() { } info() { - [ "$DRACUT_QUIET" ] || DRACUT_QUIET="x$(getarg quiet)" + if [ -z "$DRACUT_QUIET" ]; then + DRACUT_QUIET="no" + getarg quiet && DRACUT_QUIET="yes" + fi echo "<6>dracut: $@" > /dev/kmsg - [ "$DRACUT_QUIET" != "xquiet" ] && \ - echo "dracut: $@" > /dev/console + [ "$DRACUT_QUIET" != "yes" ] && \ + echo "dracut: $@" } vinfo() { -- 2.11.4.GIT