GIT.Harvie.CZ
/
svn
/
Prometheus-QoS
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://en.wikipedia.org/wiki/Enterprise_resource_planning
[svn/Prometheus-QoS/.git]
/
optional-tools
/
make-pimp
diff --git
a/optional-tools/make-pimp
b/optional-tools/make-pimp
index 6a1d69aaa2a7c98716efd37292a3fb5799ca44c5..cdd62641f125922898268b0575b36bfcf6b08e27 100755
(executable)
--- a/
optional-tools/make-pimp
+++ b/
optional-tools/make-pimp
@@
-1,11
+1,11
@@
#!/bin/bash
#!/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
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 ]
do
pubip=`grep "^$czfip " $etchosts|cut -f 2 -d "["|cut -f 1 -d "]"`
if ! [ -z $pubip ]
@@
-18,10
+18,10
@@
echo " done."
echo -n "Writing $pimp_snat"
echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_snat
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 ")"`
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 .
then
echo "$czfip $pubip" >> $pimp_snat
echo -n .
This page took
0.154264 seconds
and
4
git commands to generate.