summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authordamien <damien@mandriva.com>2001-08-30 20:56:35 +0000
committerdamien <damien@mandriva.com>2001-08-30 20:56:35 +0000
commitd363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d (patch)
tree41b09e372d39e682758760564cda9f889bdee4fb /perl-install
parent6f8bdbac9f15bcbeddd9b9a2644cbd52b57b5449 (diff)
downloaddrakx-d363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d.tar
drakx-d363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d.tar.gz
drakx-d363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d.tar.bz2
drakx-d363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d.tar.xz
drakx-d363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d.zip
silently /sbin/ip
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/network.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 84a844c99..f843c25e7 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -118,7 +118,7 @@ sub write_interface_conf {
my @ip = split '\.', $intf->{IPADDR};
my @mask = split '\.', $intf->{NETMASK};
my $hwaddr;
- $::o->{miscellaneous}{track_network_id} and $hwaddr = -e "$prefix/sbin/ip" && `LC_ALL= LANG= $prefix/sbin/ip -o link show $intf->{DEVICE}`;
+ $::o->{miscellaneous}{track_network_id} and $hwaddr = -e "$prefix/sbin/ip" && `LC_ALL= LANG= $prefix/sbin/ip -o link show $intf->{DEVICE} 2>/dev/null`;
if ($hwaddr) { chomp $hwaddr; $hwaddr =~ s/.*link\/ether\s([0-9a-z:]+)\s.*/$1/; }
add2hash($intf, {
BROADCAST => join('.', mapn { int $_[0] | ~int $_[1] & 255 } \@ip, \@mask),