#!/bin/sh

################################################################################
# Modification History;
#
# Date------ Author----- Description--------------------------------------------
# 2007/11/26 M. Pepin    Initial creation
#
################################################################################

TC=/sbin/tc

# We always expect 2 parameters (0..1) where the first $0 parameter is the script path name
if [ $# -ne 1 ];
then
        echo "Usage: "
        echo ""
        echo "  $0 <DEV>"
        echo "     where:"
        echo "          <DEV>       -- net device name to be configured with PRIO queuing discipline"
        echo ""
        echo "Example:"
        echo ""
        echo "  $0 eth1"
        exit 1
fi

EXIT_CODE=0

DEV=$1

# Free previous QoS Settings
$TC qdisc del dev $DEV root handle 1: prio  2> /dev/null
$TC qdisc del dev $DEV root handle 1: htb default 4 2> /dev/null 

exit $EXIT_CODE


