From: Harald Hoyer Date: Fri, 25 Mar 2011 14:38:54 +0000 (+0100) Subject: dracut-functions: use "type" to determine the need of sourcing dracut-logger X-Git-Tag: 009~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6d53f60b21e8402ac7c2e927986b0ceac2f9ae8;p=thirdparty%2Fdracut.git dracut-functions: use "type" to determine the need of sourcing dracut-logger --- diff --git a/dracut-functions b/dracut-functions index 4409a8547..fa75642e1 100755 --- a/dracut-functions +++ b/dracut-functions @@ -20,7 +20,7 @@ # along with this program. If not, see . # -if [[ ! $__DRACUT_LOGGER__ ]]; then +if ! type dinfo >/dev/null 2>&1; then . "$dracutbasedir/dracut-logger" dlog_init fi