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