From d6d53f60b21e8402ac7c2e927986b0ceac2f9ae8 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Fri, 25 Mar 2011 15:38:54 +0100 Subject: [PATCH] dracut-functions: use "type" to determine the need of sourcing dracut-logger --- dracut-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3