X-Git-Url: https://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=optional-tools%2Fmake-pimp;h=2c0f59d21528dedb54fee1bceff2f63279fcd4cc;hp=6a1d69aaa2a7c98716efd37292a3fb5799ca44c5;hb=7b3d75702e404626e66e070db48cedc8abf16dd6;hpb=ddac5749435daa8ccf3c7ae162027bb7e424c198 diff --git a/optional-tools/make-pimp b/optional-tools/make-pimp index 6a1d69a..2c0f59d 100755 --- a/optional-tools/make-pimp +++ b/optional-tools/make-pimp @@ -5,7 +5,7 @@ etchosts="/rw/etc/hosts" 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 ] @@ -18,7 +18,7 @@ echo " done." 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 ]