summaryrefslogtreecommitdiffstats
path: root/retiolum/bin/hosts
diff options
context:
space:
mode:
authorroot <root@gum.krebsco.de>2015-03-20 09:33:26 +0100
committerroot <root@gum.krebsco.de>2015-03-20 09:33:26 +0100
commitb85a492a50613cdece54cdafea68bef2fa511191 (patch)
tree2fc63bd289746a744c1482efe6ebaf3804aba4fa /retiolum/bin/hosts
parent6a291f4c34122e49e60fb7110394df8832893fbb (diff)
retiolum/bin/hosts: make $netname variable again
Diffstat (limited to 'retiolum/bin/hosts')
-rwxr-xr-xretiolum/bin/hosts2
1 files changed, 1 insertions, 1 deletions
diff --git a/retiolum/bin/hosts b/retiolum/bin/hosts
index 3a8dbcc9..1c9f1182 100755
--- a/retiolum/bin/hosts
+++ b/retiolum/bin/hosts
@@ -8,7 +8,7 @@ cd /etc/tinc/$netname/hosts
for i in `ls`; do
hname="$i $i.retiolum"
for j in `sed -En 's|^ *Aliases *= *(.+)|\1|p' $i`;do
- hname="${hname} $j.retiolum $j"
+ hname="${hname} $j.$netname $j"
done
sed -En '
s|^ *Subnet *= *([^ /]*)(/[0-9]*)? *$|\1 '"$hname"'|p