# Configure radvd

#BOUND6 REBOOT6 RENEW6

case "$reason" in
REBIND6|BOUND6)
	/etc/init.d/radvd stop
	;;
RECONFIGURE|EXPIRE6)
	/etc/init.d/radvd stop
	/sbin/ip -6 addr flush scope global dynamic
	;;
STOP6|TIMEOUT|STOPPED)
	/etc/init.d/netconf radvd
	;;
DELEGATED6)
	if [ "${interface}" == "${last_delegate}" ];then
		/etc/init.d/netconf radvd
	fi
	;;
esac
