summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/network.pm11
1 files changed, 1 insertions, 10 deletions
diff --git a/perl-install/network/network.pm b/perl-install/network/network.pm
index d0094fc4c..b81604d12 100644
--- a/perl-install/network/network.pm
+++ b/perl-install/network/network.pm
@@ -73,16 +73,7 @@ sub read_squid_conf {
}
sub read_tmdns_conf {
- my ($file) = @_;
- local *F; open $F, $file or die "cannot open file $file: $!";
- local $_;
- my %outf;
-
- while (<F>) {
- ($outf{ZEROCONF_HOSTNAME}) = /^\s*hostname\s*=\s*(\w+)/ and return \%outf;
- }
-
- \%outf;
+ { if_(cat_($_[0]) =~ /^\s*hostname\s*=\s*(\w+)/m, ZEROCONF_HOSTNAME => $1) };
}
sub write_conf {