#! /bin/sh
case "$1" in

    start)
	getcfg routed_enable
        if [ "$?" != "1" ]; then
                echo "routed  disable"
                exit 0
        fi
	/sbin/routed
	;;

    stop)
	kill -USR1 `pidof routed`
	if [ "$?" = "0" ]; then echo "Done"
	else                    echo "FAILED"; fi
	;;

    restart)
	;;

    *)
	echo "Usage: $0 (start|stop|restart)"
	exit 1
	;;

esac

exit 0

