summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-09-11 16:04:38 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-09-11 16:04:38 +0000
commit1fc3dd13b26af56d43157ccdea5ef8b5ec8ab516 (patch)
tree09b83d417cd39b7e28a63df36b5b24f8fb4a4114
parent2b9b8322c9d45fc9030fc720279f3fad0abd277f (diff)
downloaddrakx-1fc3dd13b26af56d43157ccdea5ef8b5ec8ab516.tar
drakx-1fc3dd13b26af56d43157ccdea5ef8b5ec8ab516.tar.gz
drakx-1fc3dd13b26af56d43157ccdea5ef8b5ec8ab516.tar.bz2
drakx-1fc3dd13b26af56d43157ccdea5ef8b5ec8ab516.tar.xz
drakx-1fc3dd13b26af56d43157ccdea5ef8b5ec8ab516.zip
do not set hostname if there's a dynamic interface
-rwxr-xr-xperl-install/standalone/drakconnect2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect
index be17efbf0..f91700ec5 100755
--- a/perl-install/standalone/drakconnect
+++ b/perl-install/standalone/drakconnect
@@ -358,7 +358,7 @@ sub update_list() {
}
sub apply() {
- network::sethostname($netc);
+ network::sethostname($netc) if every { $_->{BOOTPROTO} eq "static" } values %$intf;
$netcnx->{type} eq 'modem' and network::modem::ppp_configure($in, $netcnx->{$netcnx->{type}});
$netcnx->{type} eq 'isdn_internal' and network::isdn::isdn_write_config_backend($netcnx->{$netcnx->{type}}, $netc, $netcnx); #$light