X-Git-Url: https://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=optional-tools%2Fmake-pimp;h=cdd62641f125922898268b0575b36bfcf6b08e27;hp=2c0f59d21528dedb54fee1bceff2f63279fcd4cc;hb=86d37066beb7298ec660b09f5efa0f2622352663;hpb=7cf6da16e9b30099942458c113ccce7d0f29ee67 diff --git a/optional-tools/make-pimp b/optional-tools/make-pimp index 2c0f59d..cdd6264 100755 --- a/optional-tools/make-pimp +++ b/optional-tools/make-pimp @@ -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="/mnt/mtdblock0/pimp-2way-nat.tmp" +pimp_snat="/mnt/mtdblock0/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 .