revert to 267 + zachovana oprava #include <stdio.h> v utils.h
[svn/Prometheus-QoS/.git] / optional-tools / make-pimp
CommitLineData
a4f661fc 1#!/bin/bash
4deb2d6f 2# $Id: make-pimp 166 2012-05-12 18:15:42Z aquarius $
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.208122 seconds and 4 git commands to generate.