qos |
Subversion Repositories: |
Compare with Previous - Blame - Download
#!/bin/sh
#
# CZFree.Net RFC-QoS clear script
# version: 2.1.2
#
### Configuration START
IFACECONFFILE='/etc/qos/iface_conf'
### Configuration STOP
if [ ! -f $IFACECONFFILE ]
then
echo "Interface configuration file doesn't exist - program terminated" 1>&2
exit 1
fi
IFACECONF=`grep -v '^[[:space:]]*#' $IFACECONFFILE | tr -d '\n' | sed -e 's/[[:space:]]*}[[:space:]]*/}\\\n/g'`
FACES=`echo -e $IFACECONF | sed -e 's/^[[:space:]]*interface[[:space:]]\+\([[:alnum:]]\+\).*/\1/'`
echo "Removing CZF-QoS rules..."
TC="`which tc`"
for FACE in ${FACES} ; do
$TC qdisc del dev ${FACE} root &>/dev/null
done
iptables -t mangle -F