summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ddac574)
echo -n "Writing $pimp_2way_nat"
echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_2way_nat
echo -n "Writing $pimp_2way_nat"
echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_2way_nat
-for czfip in `grep [[] $etchosts|cut -f 1`
+for czfip in `grep -v ^# $etchosts|grep [[]|cut -f 1`
do
pubip=`grep "^$czfip " $etchosts|cut -f 2 -d "["|cut -f 1 -d "]"`
if ! [ -z $pubip ]
do
pubip=`grep "^$czfip " $etchosts|cut -f 2 -d "["|cut -f 1 -d "]"`
if ! [ -z $pubip ]
echo -n "Writing $pimp_snat"
echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_snat
echo -n "Writing $pimp_snat"
echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_snat
-for czfip in `grep "(" $etchosts|cut -f 1`
+for czfip in `grep -v ^# $etchosts|grep "("|cut -f 1`
do
pubip=`grep "^$czfip " $etchosts|cut -f 2 -d "("|cut -f 1 -d ")"`
if ! [ -z $pubip ]
do
pubip=`grep "^$czfip " $etchosts|cut -f 2 -d "("|cut -f 1 -d ")"`
if ! [ -z $pubip ]