#!/bin/sh
if [ "$INTERFACE" = "wan" ]; then
	if [ -h /etc/rc.d/S50qos_gargoyle ] ; then
		if [ "$ACTION" = "ifup" ]; then
      		/etc/init.d/qos_gargoyle start $DEVICE
		fi
	fi

	if [ "$ACTION" = "ifdown" ]; then
     		/etc/init.d/qos_gargoyle stop
	fi
fi
