diff options
author | damien <damien@mandriva.com> | 2001-08-30 20:56:35 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-08-30 20:56:35 +0000 |
commit | d363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d (patch) | |
tree | 41b09e372d39e682758760564cda9f889bdee4fb /perl-install/network | |
parent | 6f8bdbac9f15bcbeddd9b9a2644cbd52b57b5449 (diff) | |
download | drakx-backup-do-not-use-d363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d.tar drakx-backup-do-not-use-d363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d.tar.gz drakx-backup-do-not-use-d363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d.tar.bz2 drakx-backup-do-not-use-d363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d.tar.xz drakx-backup-do-not-use-d363fda16d2548e4b9fe4d4a93a9b2e0ad0ec05d.zip |
silently /sbin/ip
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/network.pm | 2 |
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), |