HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //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

	/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}

/sbin/stop dhcp-client6 IFACE=${IFNAME} ACTION=info
/sbin/stop dhcp-client6 IFACE=${IFNAME} ACTION=client
/sbin/stop dhcp-client6 IFACE=${IFNAME} ACTION=pd

/usr/syno/sbin/synonetdtool --reset-ipv6-module ${IFNAME}

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

${RELAYDAEMON} -U