summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Chaumette <dchaumette@mandriva.com>2003-01-31 17:32:17 +0000
committerDamien Chaumette <dchaumette@mandriva.com>2003-01-31 17:32:17 +0000
commita5543c2f4625d590a62217de0d6cc003fb75814f (patch)
treecec3fa87298eaf6c40cb20822155d82dcc4940ab
parent5453d381ff315e1eb9a378b33b94229719632909 (diff)
downloaddrakx-a5543c2f4625d590a62217de0d6cc003fb75814f.tar
drakx-a5543c2f4625d590a62217de0d6cc003fb75814f.tar.gz
drakx-a5543c2f4625d590a62217de0d6cc003fb75814f.tar.bz2
drakx-a5543c2f4625d590a62217de0d6cc003fb75814f.tar.xz
drakx-a5543c2f4625d590a62217de0d6cc003fb75814f.zip
more zeroconf configuration
-rw-r--r--perl-install/network/network.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index cd8234fb9..ad2a78be0 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -73,6 +73,13 @@ sub write_conf {
setVarsInSh($file, $netc, if_(!$netc->{DHCP}, 'HOSTNAME'), qw(NETWORKING FORWARD_IPV4 DOMAINNAME GATEWAY GATEWAYDEV NISDOMAIN));
}
+sub write_zeroconf {
+ my ($file, $netc);
+ my %zeroconf_file = getVarsFromSh($file) or die "cannot open file $file: $!";
+ $zeroconf_file{hostname} = $netc->{ZEROCONF_HOSTNAME};
+ setVarsInSh($file, %zeroconf_file);
+}
+
sub write_resolv_conf {
my ($file, $netc) = @_;
@@ -501,6 +508,8 @@ sub configureNetwork2 {
$in->do_pkgs->install('pump');
}
#-res_init(); #- reinit the resolver so DNS changes take affect
+
+ write_zeroconf('/etc/tmdns.conf', $netc) if $netc->{ZEROCONF_HOSTNAME};
proxy_configure($::o->{miscellaneous});
}