some bugfixes
[svn/Prometheus-QoS/.git] / optional-tools / make-pimp
CommitLineData
a4f661fc 1#!/bin/bash
3947b122 2# $Id$
3a4fe273 3pimp_2way_nat="/dev/shm/pimp-2way-nat.tmp"
4pimp_snat="/dev/shm/pimp-snat.tmp"
86d37066 5etchosts="/mnt/mtdblock0/hosts"
a4f661fc 6
f035230d 7echo -n "Writing $pimp_2way_nat"
8echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_2way_nat
3947b122 9sed -e '/^#/d; /^$/d; /.*\[.*\]/!d; s/[ \t].*#.*\[/ /; s/\].*$//' < $etchosts >> $pimp_2way_nat
f035230d 10echo " done."
11
12echo -n "Writing $pimp_snat"
13echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_snat
3947b122 14sed -e '/^#/d; /^$/d; /.*(.*)/!d; s/[ \t].*#.*(/ /; s/).*$//' < $etchosts >> $pimp_snat
a4f661fc 15echo " done."
This page took 0.170373 seconds and 4 git commands to generate.