summaryrefslogtreecommitdiffstats
path: root/contrib/rom-o-matic/utils.php
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/rom-o-matic/utils.php')
-rw-r--r--contrib/rom-o-matic/utils.php5
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