summaryrefslogtreecommitdiffstats
path: root/perl-install/network/network.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-21 11:58:39 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-21 11:58:39 +0000
commitf16ed6021dd7a7ca71eb9fb0926f4e4dd95b4b33 (patch)
tree540fb66a0fb55a4a6c031d484a2e70e7deee5013 /perl-install/network/network.pm
parentb22a48ed30b410c7fec83895db6b9a712d78ab54 (diff)
downloaddrakx-f16ed6021dd7a7ca71eb9fb0926f4e4dd95b4b33.tar
drakx-f16ed6021dd7a7ca71eb9fb0926f4e4dd95b4b33.tar.gz
drakx-f16ed6021dd7a7ca71eb9fb0926f4e4dd95b4b33.tar.bz2
drakx-f16ed6021dd7a7ca71eb9fb0926f4e4dd95b4b33.tar.xz
drakx-f16ed6021dd7a7ca71eb9fb0926f4e4dd95b4b33.zip
set hostname only after packages have been installed, or else graphical urpmi may fail
Diffstat (limited to 'perl-install/network/network.pm')
-rw-r--r--perl-install/network/network.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index 67dd579bf..9624c1c11 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -104,7 +104,6 @@ sub write_network_conf {
$net->{network}{NETWORKING} = 'yes';
setVarsInSh($::prefix . $network_file, $net->{network}, qw(HOSTNAME NETWORKING GATEWAY GATEWAYDEV NISDOMAIN FORWARD_IPV4 NETWORKING_IPV6 IPV6_DEFAULTDEV));
- $net->{network}{HOSTNAME} && !$::isInstall and sethostname($net);
}
sub write_zeroconf {
@@ -608,6 +607,8 @@ sub configure_network {
require network::shorewall;
my $shorewall = network::shorewall::read();
$shorewall && !$shorewall->{disabled} and network::shorewall::write($shorewall);
+
+ $net->{network}{HOSTNAME} && !$::isInstall and sethostname($net);
}
#- make net_applet reload the configuration