Project

General

Profile

Download (501 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#!/bin/sh
2

    
3
# write nameservers to file
4
if [ $6 = "dns1" ]; then
5
	echo $7 > /var/etc/nameserver_$1
6
	/sbin/route delete $7
7
	/sbin/route add $7 $4
8
fi
9

    
10
if [ $8 = "dns2" ]; then
11
	echo $9 >> /var/etc/nameserver_$1
12
	/sbin/route delete $9
13
	/sbin/route add $9 $4
14
fi
15

    
16
# let the configuration system know that the ip has changed.
17
/bin/echo $4 > /tmp/$1_router
18
/bin/echo $3 > /tmp/$1_ip
19
/usr/bin/touch /tmp/$1up
20
/usr/local/sbin/pfSctl -c 'service reload dns'
21
/usr/local/sbin/pfSctl -c "interface newip $1"
22
exit 0
(8-8/13)