diff options
author | Damien Chaumette <dchaumette@mandriva.com> | 2003-01-31 17:32:17 +0000 |
---|---|---|
committer | Damien Chaumette <dchaumette@mandriva.com> | 2003-01-31 17:32:17 +0000 |
commit | a5543c2f4625d590a62217de0d6cc003fb75814f (patch) | |
tree | cec3fa87298eaf6c40cb20822155d82dcc4940ab /perl-install | |
parent | 5453d381ff315e1eb9a378b33b94229719632909 (diff) | |
download | drakx-a5543c2f4625d590a62217de0d6cc003fb75814f.tar drakx-a5543c2f4625d590a62217de0d6cc003fb75814f.tar.gz drakx-a5543c2f4625d590a62217de0d6cc003fb75814f.tar.bz2 drakx-a5543c2f4625d590a62217de0d6cc003fb75814f.tar.xz drakx-a5543c2f4625d590a62217de0d6cc003fb75814f.zip |
more zeroconf configuration
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/network/network.pm | 9 |
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}); } |