a4f661fc |
1 | #!/bin/bash |
3947b122 |
2 | # $Id$ |
3a4fe273 |
3 | pimp_2way_nat="/dev/shm/pimp-2way-nat.tmp" |
4 | pimp_snat="/dev/shm/pimp-snat.tmp" |
86d37066 |
5 | etchosts="/mnt/mtdblock0/hosts" |
a4f661fc |
6 | |
f035230d |
7 | echo -n "Writing $pimp_2way_nat" |
8 | echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_2way_nat |
3947b122 |
9 | sed -e '/^#/d; /^$/d; /.*\[.*\]/!d; s/[ \t].*#.*\[/ /; s/\].*$//' < $etchosts >> $pimp_2way_nat |
f035230d |
10 | echo " done." |
11 | |
12 | echo -n "Writing $pimp_snat" |
13 | echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_snat |
3947b122 |
14 | sed -e '/^#/d; /^$/d; /.*(.*)/!d; s/[ \t].*#.*(/ /; s/).*$//' < $etchosts >> $pimp_snat |
a4f661fc |
15 | echo " done." |