reorganizace
[svn/Prometheus-QoS/.git] / optional-tools / make-pimp
CommitLineData
a4f661fc 1#!/bin/bash
2pimp=/rw/etc/pimp.conf
3etchosts=/rw/etc/hosts
4
5echo -n "Writing $pimp "
6echo "#This is $pimp generated by Prometheus-tools/make-pimp" > $pimp
7for czfip in `grep [[] $etchosts|cut -f 1`
8do
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
15done
16echo " done."
This page took 0.129574 seconds and 4 git commands to generate.