summaryrefslogtreecommitdiffstats
path: root/retiolum
diff options
context:
space:
mode:
Diffstat (limited to 'retiolum')
-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