Project

General

Profile

« Previous | Next » 

Revision 6c452777

Added by David Wood almost 10 years ago

Connect ppp-ipv6 helper script to ppp-linkdown and ppp-linkup

View differences:

src/usr/local/sbin/ppp-linkdown
1 1
#!/bin/sh
2 2

  
3 3
IF="${1}"
4
PROTOCOL="${2}"
4 5
LOCAL_IP="${3}"
5 6

  
6 7
if [ -f /tmp/${IF}up ] && [ -f /conf/${IF}.log ]; then
......
15 16
	[ -n "${GW}" ] \
16 17
		&& /sbin/route delete default ${GW}
17 18
fi
19
if [ "${PROTOCOL}" == "inet6" ]; then
20
	/usr/local/sbin/ppp-ipv6 ${IF} down
21
fi
18 22
# delete the node just in case mpd cannot do that
19 23
/usr/sbin/ngctl shutdown ${IF}:
20 24
if [ -f "/var/etc/nameserver_${IF}" ]; then
src/usr/local/sbin/ppp-linkup
37 37
	pfSctl -c "interface newip ${1}"
38 38

  
39 39
elif [ "${2}" == "inet6" ]; then
40
	/usr/local/sbin/ppp-ipv6 ${1} up
40 41
	# let the configuration system know that the ipv6 has changed.
41 42
	echo ${4} |cut -d% -f1 > /tmp/${1}_routerv6
42 43
	echo ${3} |cut -d% -f1 > /tmp/${1}_ipv6

Also available in: Unified diff