mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only setup link0 during booting process.
This commit is contained in:
parent
1df2c91591
commit
31a822333a
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user