diff options
author | Paul Sands | 2012-02-12 14:35:43 +0100 |
---|---|---|
committer | Michael Brown | 2012-02-12 14:35:43 +0100 |
commit | 4108321bf539768ce2175e92ac1e1687b667b109 (patch) | |
tree | 42944d9a15261e0621df5b9e73330f2df1e34397 /contrib/rom-o-matic/utils.php | |
parent | [prefix] Fix missing underscore in libprefix (diff) | |
download | ipxe-4108321bf539768ce2175e92ac1e1687b667b109.tar.gz ipxe-4108321bf539768ce2175e92ac1e1687b667b109.tar.xz ipxe-4108321bf539768ce2175e92ac1e1687b667b109.zip |
[contrib] Fix rom-o-matic
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'contrib/rom-o-matic/utils.php')
-rw-r--r-- | contrib/rom-o-matic/utils.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/rom-o-matic/utils.php b/contrib/rom-o-matic/utils.php index dc5bd414..e0e62f44 100644 --- a/contrib/rom-o-matic/utils.php +++ b/contrib/rom-o-matic/utils.php @@ -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 |