HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //proc/25636/root/etc/ppp/ipv6-down
#!/bin/sh

if [ -f /proc/sys/net/ipv6/conf/${IFNAME}/accept_ra ]; then
	echo 1 > /proc/sys/net/ipv6/conf/${IFNAME}/accept_ra
fi

kill_dns ()
{
	if [ -z $1 ]; then
		return 1
	fi

	/bin/systemctl stop dhclient6@${1}-info

	/usr/syno/sbin/synonetdtool --del-gateway-info -6 $1
	/usr/syno/sbin/synonetdtool --refresh-gateway -6

	return 0
}

TC_SCRIPT="/usr/syno/bin/synotc_common"
RELAYDAEMON="/usr/syno/sbin/synorelayd"

kill_dns ${IFNAME}

if [ -x "${TC_SCRIPT}" ]; then
	${TC_SCRIPT} restart /etc/tc
fi

${RELAYDAEMON} -U