dracut-functions: use "type" to determine the need of sourcing dracut-logger

This commit is contained in:
Harald Hoyer 2011-03-25 15:38:54 +01:00
parent e94f4cce47
commit d6d53f60b2

View File

@ -20,7 +20,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
if [[ ! $__DRACUT_LOGGER__ ]]; then
if ! type dinfo >/dev/null 2>&1; then
. "$dracutbasedir/dracut-logger"
dlog_init
fi