Project

General

Profile

Download (669 Bytes) Statistics
| Branch: | Tag: | Revision:
1 e1c8cdf5 Scott Ullrich
#!/bin/sh
2
3
rm -f /var/etc/nameservers.conf
4
5
# unset CGI environment variables so as not to confuse PHP
6
unset CONTENT_TYPE GATEWAY_INTERFACE REMOTE_USER REMOTE_ADDR AUTH_TYPE
7
unset HTTP_USER_AGENT CONTENT_LENGTH SCRIPT_FILENAME HTTP_HOST
8
unset SERVER_SOFTWARE HTTP_REFERER SERVER_PROTOCOL REQUEST_METHOD
9
unset SERVER_PORT SCRIPT_NAME SERVER_NAME
10
11
# write nameservers to file
12
if [ "$6" = "dns1" ]; then
13 28ec82f1 Ermal Luçi
	/bin/echo $7 >> /var/etc/nameservers.conf
14 e1c8cdf5 Scott Ullrich
fi
15
if [ "$8" = "dns2" ]; then
16 28ec82f1 Ermal Luçi
	/bin/echo $9 >> /var/etc/nameservers.conf
17 e1c8cdf5 Scott Ullrich
fi
18
19 28ec82f1 Ermal Luçi
# let the configuration system know that the ip has changed.
20
/bin/echo $1 > /tmp/rc.newwanip
21 b87364eb Ermal Luçi
/bin/echo $4 > /tmp/$1_router
22 6849a176 Ermal Luçi
/usr/bin/touch /tmp/$1up