diff options
author | Ermal <eri@pfsense.org> | 2010-09-06 15:04:54 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-06 15:04:54 +0000 |
commit | cfdf944442a11cd3ae1f37e347b6cff1afe03986 (patch) | |
tree | 36974980cc183e52941f7bdf2fef9382f307948d /usr | |
parent | 401a6674c7bb0b2c2cba4ed575a6b83d6597a6b0 (diff) | |
download | pfsense-cfdf944442a11cd3ae1f37e347b6cff1afe03986.zip pfsense-cfdf944442a11cd3ae1f37e347b6cff1afe03986.tar.gz |
Delete previous route if present.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/sbin/ppp-linkup | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup index f15f082..4002e42 100755 --- a/usr/local/sbin/ppp-linkup +++ b/usr/local/sbin/ppp-linkup @@ -1,19 +1,15 @@ #!/bin/sh -# unset CGI environment variables so as not to confuse PHP -unset CONTENT_TYPE GATEWAY_INTERFACE REMOTE_USER REMOTE_ADDR AUTH_TYPE -unset HTTP_USER_AGENT CONTENT_LENGTH SCRIPT_FILENAME HTTP_HOST -unset SERVER_SOFTWARE HTTP_REFERER SERVER_PROTOCOL REQUEST_METHOD -unset SERVER_PORT SCRIPT_NAME SERVER_NAME - # write nameservers to file if [ $6 = "dns1" ]; then echo $7 > /var/etc/nameserver_$1 + /sbin/route delete $7 /sbin/route add $7 $4 fi if [ $8 = "dns2" ]; then echo $9 >> /var/etc/nameserver_$1 + /sbin/route delete $9 /sbin/route add $9 $4 fi |