diff options
author | damien <damien@mandriva.com> | 2002-03-12 22:57:06 +0000 |
---|---|---|
committer | damien <damien@mandriva.com> | 2002-03-12 22:57:06 +0000 |
commit | 48db6e9029f5fd8f671a796da82bb9c34658936f (patch) | |
tree | ad78d67c7947e7262de6a2088dcd961c0ae9765b /perl-install/network | |
parent | e0ec77fdf3ff939f17fcc8f1a00623ac5a6de7e1 (diff) | |
download | drakx-48db6e9029f5fd8f671a796da82bb9c34658936f.tar drakx-48db6e9029f5fd8f671a796da82bb9c34658936f.tar.gz drakx-48db6e9029f5fd8f671a796da82bb9c34658936f.tar.bz2 drakx-48db6e9029f5fd8f671a796da82bb9c34658936f.tar.xz drakx-48db6e9029f5fd8f671a796da82bb9c34658936f.zip |
onboot option only in expert mode
Diffstat (limited to 'perl-install/network')
-rw-r--r-- | perl-install/network/network.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm index c4ecba911..b811b210a 100644 --- a/perl-install/network/network.pm +++ b/perl-install/network/network.pm @@ -129,6 +129,7 @@ sub write_interface_conf { my $hwaddr; $::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/; } + $hwaddr and $intf->{HWADDR} = undef; add2hash($intf, { BROADCAST => join('.', mapn { int $_[0] | ~int $_[1] & 255 } \@ip, \@mask), NETWORK => join('.', mapn { int $_[0] & $_[1] } \@ip, \@mask), @@ -310,7 +311,7 @@ notation (for example, 1.2.3.4)."); [ { label => _("IP address"), val => \$intf->{IPADDR}, disabled => sub { $pump } }, { label => _("Netmask"), val => \$intf->{NETMASK}, disabled => sub { $pump } }, { label => _("Automatic IP"), val => \$pump, type => "bool", text => _("(bootp/dhcp)") }, - { label => _("Started at boot"), val => \$onboot, type => "bool" }, + if_($::expert, { label => _("Start at boot"), val => \$onboot, type => "bool" }), if_($intf->{wireless_eth}, { label => "WIRELESS_MODE", val => \$intf->{WIRELESS_MODE}, list => [ "Ad-hoc", "Managed", "Master", "Repeater", "Secondary", "Auto"] }, { label => "WIRELESS_ESSID", val => \$intf->{WIRELESS_ESSID} }, |