dinfo print only when verbose defined

master
Andreas Thienemann 2009-05-20 12:30:22 +02:00 committed by Harald Hoyer
parent 155c171d88
commit 84ffb877fd
2 changed files with 2 additions and 2 deletions

2
dracut
View File

@ -96,7 +96,7 @@ hookdirs="pre-udev pre-mount pre-pivot mount"
readonly initdir=$(mktemp -d -t initramfs.XXXXXX)
trap 'rm -rf "$initdir"' 0 # clean up after ourselves no matter how we die.

export initdir hookdirs dsrc dracutmodules modules debug
export initdir hookdirs dsrc dracutmodules modules debug beverbose

# Create some directory structure first
for d in bin sbin usr/bin usr/sbin usr/lib etc proc sys sysroot dev/pts; do

View File

@ -33,7 +33,7 @@ dwarning() {
}

dinfo() {
echo "I: $@" >&2
[[ $beverbose ]] && echo "I: $@" >&2
}

derror() {