[contrib] Fix rom-o-matic

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Paul Sands
2012-02-12 13:35:43 +00:00
committed by Michael Brown
parent d3630b6a64
commit 4108321bf5
6 changed files with 28 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
<? // -*- Mode: PHP; -*-
<?php // -*- Mode: PHP; -*-
/**
* Copyright (C) 2009 Marty Connor <mdc@etherboot.org>.
@@ -131,7 +131,8 @@ function parse_nic_file ()
if ( strpos ( $first_eight_chars, "family" ) === 0 ) {
// get pathname of NIC driver
list ( $dummy, $nic ) = split( "[ \t]+", $line );
#list ( $dummy, $nic ) = split( "[ \t]+", $line );
list ( $dummy, $nic ) = explode("\t", $line);
settype ( $nic, "string" );
// extract filename name of driver from pathname