]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: use "type" to determine the need of sourcing dracut-logger
authorHarald Hoyer <harald@redhat.com>
Fri, 25 Mar 2011 14:38:54 +0000 (15:38 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 25 Mar 2011 15:10:47 +0000 (16:10 +0100)
dracut-functions

index 4409a8547679567ff7532dcbc7375ebf8ca1c1a0..fa75642e16e62979a2905cb212ce818b68f4a1ae 100755 (executable)
@@ -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