0.8.0 stable branche, 0.8.1 development trunk
[svn/Prometheus-QoS/.git] / optional-tools / make-pimp
1 #!/bin/bash
2 pimp=/rw/etc/pimp.conf
3 etchosts=/rw/etc/hosts
4
5 echo -n "Writing $pimp "
6 echo "#This is $pimp generated by Prometheus-tools/make-pimp" > $pimp
7 for czfip in `grep [[] $etchosts|cut -f 1`
8 do
9 pubip=`grep "^$czfip " $etchosts|cut -f 2 -d "["|cut -f 1 -d "]"`
10 if ! [ -z $pubip ]
11 then
12 echo "$czfip $pubip" >> $pimp
13 echo -n .
14 fi
15 done
16 echo " done."
This page took 0.264556 seconds and 5 git commands to generate.