digitally imported the retiolum module
This commit is contained in:
parent
29d168ae28
commit
97852ac83f
@ -125,8 +125,12 @@ with lib;
|
|||||||
(cd ${hosts}
|
(cd ${hosts}
|
||||||
printf \'\'
|
printf \'\'
|
||||||
for i in `ls`; do
|
for i in `ls`; do
|
||||||
|
names=$(hostnames $i)
|
||||||
|
for j in `sed -En 's|^ *Aliases *= *(.+)|\1|p' $i`; do
|
||||||
|
names="$names $(hostnames $j)"
|
||||||
|
done
|
||||||
sed -En '
|
sed -En '
|
||||||
s|^ *Subnet *= *([^ /]*)(/[0-9]*)? *$|\1 '"$(hostnames $i)"'|p
|
s|^ *Subnet *= *([^ /]*)(/[0-9]*)? *$|\1 '"$names"'|p
|
||||||
' $i
|
' $i
|
||||||
done | sort
|
done | sort
|
||||||
printf \'\'
|
printf \'\'
|
||||||
|
Loading…
Reference in New Issue
Block a user