summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-20 13:44:50 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-20 13:44:50 -0700
commitbe84d74f900c98004fdaa6d4fc0baa749422f7cc (patch)
tree24eedfebc9f36515bdd7dedbd889b364bf6a38c7
parentc0a47925dd8afe91a694fa20d2e65e986974ac79 (diff)
parentb21ed5d3b9df3b347c2efd8341fb042469a3aaee (diff)
downloadvyatta-cfg-be84d74f900c98004fdaa6d4fc0baa749422f7cc.tar.gz
vyatta-cfg-be84d74f900c98004fdaa6d4fc0baa749422f7cc.zip
Merge branch 'kenwood' of suva.vyatta.com:/git/vyatta-cfg into kenwood
-rwxr-xr-xlib/Vyatta/Misc.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm
index 091e49f..6089361 100755
--- a/lib/Vyatta/Misc.pm
+++ b/lib/Vyatta/Misc.pm
@@ -96,12 +96,13 @@ sub generate_dhclient_intf_files {
# get list of interfaces on the system via sysfs
# skip dot files (and any interfaces name .xxx)
# and bond_masters file used by bonding
-# and pseudo-interface wmaster used by wireless (will disappear in 2.6.32)
+# and wireless control interfaces
sub getInterfaces {
opendir( my $sys_class, '/sys/class/net' )
or die "can't open /sys/class/net: $!";
my @interfaces = grep { ( !/^\./ ) &&
( $_ ne 'bonding_masters' ) &&
+ ! ( $_ =~ '^mon.wlan\d$') &&
! ( $_ =~ '^wmaster\d+$')
} readdir $sys_class;
closedir $sys_class;