revert to 267 + zachovana oprava #include <stdio.h> v utils.h
[svn/Prometheus-QoS/.git] / optional-tools / make-pimp
1 #!/bin/bash
2 # $Id: make-pimp 166 2012-05-12 18:15:42Z aquarius $
3 pimp_2way_nat="/dev/shm/pimp-2way-nat.tmp"
4 pimp_snat="/dev/shm/pimp-snat.tmp"
5 etchosts="/mnt/mtdblock0/hosts"
6
7 echo -n "Writing $pimp_2way_nat"
8 echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_2way_nat
9 sed -e '/^#/d; /^$/d; /.*\[.*\]/!d; s/[ \t].*#.*\[/ /; s/\].*$//' < $etchosts >> $pimp_2way_nat
10 echo " done."
11
12 echo -n "Writing $pimp_snat"
13 echo "#This file was generated by Prometheus-tools/make-pimp" > $pimp_snat
14 sed -e '/^#/d; /^$/d; /.*(.*)/!d; s/[ \t].*#.*(/ /; s/).*$//' < $etchosts >> $pimp_snat
15 echo " done."
This page took 0.398354 seconds and 5 git commands to generate.