2 pimp_2way_nat
="/dev/shm/pimp-2way-nat.tmp"
3 pimp_snat
="/dev/shm/pimp-snat.tmp"
4 etchosts
="/mnt/mtdblock0/hosts"
6 echo -n "Writing $pimp_2way_nat"
7 echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_2way_nat
8 for czfip
in `grep -v ^# $etchosts|grep [[]|cut -f 1`
10 pubip
=`grep "^$czfip " $etchosts|cut -f 2 -d "["|cut -f 1 -d "]"`
13 echo "$czfip $pubip" >> $pimp_2way_nat
19 echo -n "Writing $pimp_snat"
20 echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_snat
21 for czfip
in `grep -v ^# $etchosts|grep "("|cut -f 1`
23 pubip
=`grep "^$czfip " $etchosts|cut -f 2 -d "("|cut -f 1 -d ")"`
26 echo "$czfip $pubip" >> $pimp_snat
This page took 0.271142 seconds and 5 git commands to generate.