changelog
[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.459389 seconds and 4 git commands to generate.