diff options
author | damien <damien@mandriva.com> | 2001-08-27 17:17:52 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2001-08-27 17:17:52 +0000 |
commit | db2cd05de49fe5a9d8e9f6148487bce93a9209ee (patch) | |
tree | ef2d38bb925ef81d7854bbe960708197ab07226b /perl-install/network | |
parent | 3b18e08492ede4590189018057c4d74c9eb511cb (diff) | |
download | drakx-db2cd05de49fe5a9d8e9f6148487bce93a9209ee.tar drakx-db2cd05de49fe5a9d8e9f6148487bce93a9209ee.tar.gz drakx-db2cd05de49fe5a9d8e9f6148487bce93a9209ee.tar.bz2 drakx-db2cd05de49fe5a9d8e9f6148487bce93a9209ee.tar.xz drakx-db2cd05de49fe5a9d8e9f6148487bce93a9209ee.zip |
make it compile
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 51ade899c..bb1991355 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 = -e $prefix/sbin/ip && `LC_ALL= LANG= $prefix/sbin/ip -o link show $intf->{DEVICE}`; - if($hwaddr) { chomp $hwaddr; $hwaddr =~ s/.*link\/ether\s([0-9a-z:]+)\s.*/$1/; } + 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), NETWORK => join('.', mapn { int $_[0] & $_[1] } \@ip, \@mask), |