summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@cmb-macbook-pro.local>2009-04-18 03:18:45 -0400
committerChris Buechler <cmb@cmb-macbook-pro.local>2009-04-18 03:18:45 -0400
commit23df7095ab98bc753ed222d9d69d4e26b6956e77 (patch)
treef39fcd5ddf595af50a2027989d91d276ada40a1d /etc
parent7c964ff020a9db4aaae0b67260ee5e76e7b4713b (diff)
downloadpfsense-23df7095ab98bc753ed222d9d69d4e26b6956e77.zip
pfsense-23df7095ab98bc753ed222d9d69d4e26b6956e77.tar.gz
Clean up polling fix a bit.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc11
1 files changed, 4 insertions, 7 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 3945caa..f310f41 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1063,10 +1063,7 @@ function setup_polling() {
setup_polling_defaults();
- if(isset($config['system']['polling']))
- $supported_ints = array('bge', 'dc', 'em', 'fwe', 'fwip', 'fxp', 'ixgb', 'nfe', 'nge', 're', 'rl', 'sf', 'sis', 'ste', 'stge', 'vge', 'vr', 'xl');
- else
- $supported_ints = array();
+ $supported_ints = array('bge', 'dc', 'em', 'fwe', 'fwip', 'fxp', 'ixgb', 'nfe', 'nge', 're', 'rl', 'sf', 'sis', 'ste', 'stge', 'vge', 'vr', 'xl');
/* build an array of interfaces to work with */
$iflist = array("lan" => "LAN", "wan" => "WAN");
@@ -1076,10 +1073,10 @@ function setup_polling() {
foreach ($iflist as $ifent => $ifname) {
$real_interface = convert_friendly_interface_to_real_interface_name($ifname);
$ifdevice = substr($real_interface, 0, -1);
+ if(!in_array($ifdevice, $supported_ints)) {
+ continue;
+ }
if(isset($config['system']['polling'])) {
- if(!in_array($ifdevice, $supported_ints)) {
- continue;
- }
mwexec("/sbin/ifconfig {$real_interface} polling");
} else {
mwexec("/sbin/ifconfig {$real_interface} -polling");
OpenPOWER on IntegriCloud