indexed SNAT/DNAT optimized for /dev/shm, 3xB (/16) private addreseses and 3 wan...
[svn/Prometheus-QoS/.git] / optional-tools / make-pimp
index 2c0f59d21528dedb54fee1bceff2f63279fcd4cc..fd585693beb54a738aab2f74a465f3f78a1b4221 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
-pimp_2way_nat="/rw/var/run/pimp-2way-nat.tmp"
-pimp_snat="/rw/var/run/pimp-snat.tmp"
-etchosts="/rw/etc/hosts"
+pimp_2way_nat="/dev/shm/pimp-2way-nat.tmp"
+pimp_snat="/dev/shm/pimp-snat.tmp"
+etchosts="/mnt/mtdblock0/hosts"
 
 echo -n "Writing $pimp_2way_nat"
 echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_2way_nat
@@ -21,7 +21,7 @@ echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_snat
 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 ] 
+ if ! [ -z "$pubip" ] 
  then
   echo "$czfip $pubip" >> $pimp_snat
   echo -n .  
This page took 0.114882 seconds and 4 git commands to generate.