From 31a822333a52cb4e2e2cf179defeb50280dafb65 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 9 Mar 2005 18:49:51 +0000 Subject: [PATCH] Only setup link0 during booting process. --- etc/inc/pfsense-utils.inc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 714d0e37da..f863f10f54 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -61,10 +61,14 @@ function return_dir_as_array($dir) { * enable_hardware_offloading() enables hardware features of nics if they are supported */ function enable_hardware_offloading($interface) { - $supported_ints = array('fxp'); - foreach($supported_ints as $int) { - if(stristr($interface,$int) != false) { - mwexec("/sbin/ifconfig $interface link0"); + global $config; + global $g; + if($g['booting']) { + $supported_ints = array('fxp'); + foreach($supported_ints as $int) { + if(stristr($interface,$int) != false) { + mwexec("/sbin/ifconfig $interface link0"); + } } } }