![]() ![]() |
qos |
Subversion Repositories: |
Compare with Previous - Blame - Download
#!/bin/sh## CZFree.Net RFC-QoS clear script# version: 2.1.2#### Configuration STARTIFACECONFFILE='/etc/qos/iface_conf'### Configuration STOPif [ ! -f $IFACECONFFILE ]thenecho "Interface configuration file doesn't exist - program terminated" 1>&2exit 1fiIFACECONF=`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/nulldoneiptables -t mangle -F