From b85a492a50613cdece54cdafea68bef2fa511191 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 20 Mar 2015 09:33:26 +0100 Subject: retiolum/bin/hosts: make $netname variable again --- retiolum/bin/hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3