projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6df817
)
dracut-lib: if "quiet" is specified, do not print info() to console
author
Harald Hoyer
<harald@redhat.com>
Wed, 15 Jul 2009 16:40:56 +0000
(18:40 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Wed, 15 Jul 2009 16:40:56 +0000
(18:40 +0200)
modules.d/99base/dracut-lib.sh
patch
|
blob
|
history
diff --git
a/modules.d/99base/dracut-lib.sh
b/modules.d/99base/dracut-lib.sh
index
aa808a7
..
a57780a
100644
(file)
--- 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() {