diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-10 20:46:52 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-10 20:46:52 +0000 |
commit | 7f23c690a5826c3ab20c9f593602be3d7dceac83 (patch) | |
tree | 622158f87b9597dcbe7815aed406ce021b90c53e /etc/inc/pfsense-utils.inc | |
parent | 4b87b18b0012aa8e4dfa4df70feb79a921a3c752 (diff) | |
download | pfsense-7f23c690a5826c3ab20c9f593602be3d7dceac83.zip pfsense-7f23c690a5826c3ab20c9f593602be3d7dceac83.tar.gz |
Patches from smos@
* Replace not functioning interface check for polling.
* Silence route commands.
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 30ae302..28d4de3 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1030,16 +1030,10 @@ function setup_polling() { foreach ($iflist as $ifent => $ifname) { $real_interface = convert_friendly_interface_to_real_interface_name($ifname); - $supported = false; - foreach($supported_ints as $supported_int) { - if(stristr($real_interface, $supported_int)) { - $supported = true; - } - } - if (stristr($real_interface, "vlan")) { - $supported = false; - } - if ($supported == true) { + if(!in_array($real_interface, $supported_ints)) { + continue; + } + if(isset($config['system']['polling'])) { mwexec("/sbin/ifconfig {$real_interface} polling"); } else { mwexec("/sbin/ifconfig {$real_interface} -polling"); |