summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-04-05 18:08:47 +0000
committerOlivier Blin <oblin@mandriva.org>2005-04-05 18:08:47 +0000
commit842972c81bbb4b8a77329426dc2116045184f616 (patch)
tree0bcc0949ece91664cb171d65c55b86bcb8e30686
parent5497f868214757ac6ae67c438124345a666efeed (diff)
downloaddrakx-backup-do-not-use-842972c81bbb4b8a77329426dc2116045184f616.tar
drakx-backup-do-not-use-842972c81bbb4b8a77329426dc2116045184f616.tar.gz
drakx-backup-do-not-use-842972c81bbb4b8a77329426dc2116045184f616.tar.bz2
drakx-backup-do-not-use-842972c81bbb4b8a77329426dc2116045184f616.tar.xz
drakx-backup-do-not-use-842972c81bbb4b8a77329426dc2116045184f616.zip
detect more devices (e.g. wireless)
-rwxr-xr-xperl-install/standalone/net_monitor5
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor
index 7124c8a84..f82ed8b3c 100755
--- a/perl-install/standalone/net_monitor
+++ b/perl-install/standalone/net_monitor
@@ -323,11 +323,12 @@ sub get_val() {
$a =~ s/^.*?\n.*?\n//;
$a =~ s/^\s*lo:.*?\n//;
my @line = split(/\n/, $a);
- my @interfaces = c::get_netdevices();
+ require detect_devices;
+ my @net_devices = detect_devices::getNet();
map {
s/\s*(\w*)://;
my $intf = $1;
- if (member($intf, @interfaces)) {
+ if (member($intf, @net_devices)) {
$monitor->{$intf}{val} = [ split() ];
$monitor->{$intf}{intf} = $intf;
$intf;