From: Harald Hoyer Date: Wed, 15 Jul 2009 16:40:56 +0000 (+0200) Subject: dracut-lib: if "quiet" is specified, do not print info() to console X-Git-Tag: 0.5~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1702e6c660fab87a4eac25bd94ad961bbef61d7c;p=platform%2Fupstream%2Fdracut.git dracut-lib: if "quiet" is specified, do not print info() to console --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index aa808a7..a57780a 100644 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -48,8 +48,10 @@ warn() { } info() { + [ "$DRACUT_QUIET" ] || DRACUT_QUIET="x$(getarg quiet)" echo "<6>dracut: $@" > /dev/kmsg - echo "dracut: $@" > /dev/console + [ "$DRACUT_QUIET" != "xquiet" ] && \ + echo "dracut: $@" > /dev/console } vinfo() {