summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-13 14:49:52 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-08-13 14:49:52 -0700
commit4d8e5cc509ac3c74cdc25a7a22256c6624ffe3a9 (patch)
treee22908e001e826fbdc4bf793203a9becfdb33585 /lib
parent10a869acbf23193c20c33a783a907fdc6a8a70f5 (diff)
downloadvyatta-cfg-4d8e5cc509ac3c74cdc25a7a22256c6624ffe3a9.tar.gz
vyatta-cfg-4d8e5cc509ac3c74cdc25a7a22256c6624ffe3a9.zip
Skip more wireless interfaces
Hostapd creates mon.wlanX interfaces which are not something we need to make visible.
Diffstat (limited to 'lib')
-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;