summaryrefslogtreecommitdiff
blob: 767aafbea610140398a6a4f62471ce50c53d954c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

# this is a script which is executed after disconnecting the ppp interface.
# look at man pppd for details

# the followings parameters are available:
# $1 = interface-name
# $2 = tty-device
# $3 = speed
# $4 = local-IP-address
# $5 = remote-IP-address
# $6 = ipparam

if [ "$USEPEERDNS" ]; then

	# restore original /etc/resolv.conf
	/bin/mv -f /etc/resolv.conf.old /etc/resolv.conf

	# Change perms because it b0rked kppp
	chmod 640 /etc/resolv.conf
	/bin/chown root:users /etc/resolv.conf

fi

[ -f /etc/init.d/firewall ] && /etc/init.d/firewall stop

[ -f /etc/ppp/ip-down.local ] && . /etc/ppp/ip-down.local $1 $2 $3 $4 $5 $6