summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-09 18:49:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-09 18:49:51 +0000
commit31a822333a52cb4e2e2cf179defeb50280dafb65 (patch)
tree52b6d4d211199a9db6d9bca7f0574c9c44dca486 /etc
parent1df2c915912538cdd97e2a993bdd05d0eb381afe (diff)
downloadpfsense-31a822333a52cb4e2e2cf179defeb50280dafb65.zip
pfsense-31a822333a52cb4e2e2cf179defeb50280dafb65.tar.gz
Only setup link0 during booting process.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc12
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 714d0e3..f863f10 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");
+ }
}
}
}
OpenPOWER on IntegriCloud