jablonka.czprosek.czf

qos

Subversion Repositories:
[/] [trunk/] [qosclear] - Blame information for rev 39

 

Line No. Rev Author Line
11simandl#!/bin/sh
2#
3# CZFree.Net RFC-QoS clear script
4# version: 2.1.2
5#
6 
7### Configuration START
8 
933simandlIFACECONFFILE='/etc/qos/iface_conf'
101simandl 
11### Configuration STOP
12 
13if [ ! -f $IFACECONFFILE ]
14then
15 echo "Interface configuration file doesn't exist - program terminated" 1>&2
16 exit 1
17fi
18 
19IFACECONF=`grep -v '^[[:space:]]*#' $IFACECONFFILE | tr -d '\n' | sed -e 's/[[:space:]]*}[[:space:]]*/}\\\n/g'`
20FACES=`echo -e $IFACECONF | sed -e 's/^[[:space:]]*interface[[:space:]]\+\([[:alnum:]]\+\).*/\1/'`
21 
22echo "Removing CZF-QoS rules..."
23 
24TC="`which tc`"
25 
26for FACE in ${FACES} ; do
27 $TC qdisc del dev ${FACE} root &>/dev/null
28done
29 
30iptables -t mangle -F

Powered by WebSVN 2.2.1