summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-27 08:02:43 +0000
committerErmal <eri@pfsense.org>2010-03-27 08:02:43 +0000
commit8f4f1e308114dd181ad5a7ff5f9db44c69d871e9 (patch)
treeecac7af4c453205b58a8218420468a04e27a6cbc /usr/local/sbin
parent9a4147d4a3240078ee7fcc2b68818ae4dc33ee49 (diff)
downloadpfsense-8f4f1e308114dd181ad5a7ff5f9db44c69d871e9.zip
pfsense-8f4f1e308114dd181ad5a7ff5f9db44c69d871e9.tar.gz
Use full patch to command and fix route add command parameter is -iface and not -if.
Diffstat (limited to 'usr/local/sbin')
-rwxr-xr-xusr/local/sbin/ppp-linkup8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup
index d86a86f..6374987 100755
--- a/usr/local/sbin/ppp-linkup
+++ b/usr/local/sbin/ppp-linkup
@@ -1,6 +1,6 @@
#!/bin/sh
-rm -f /var/etc/nameserver_$1
+/bin/rm -f /var/etc/nameserver_$1
# unset CGI environment variables so as not to confuse PHP
unset CONTENT_TYPE GATEWAY_INTERFACE REMOTE_USER REMOTE_ADDR AUTH_TYPE
@@ -10,13 +10,13 @@ unset SERVER_PORT SCRIPT_NAME SERVER_NAME
# write nameservers to file
if [ "$6" = "dns1" ]
- echo $7 >> /var/etc/nameserver_$1
- /sbin/route add $7 -if $1
+ echo $7 > /var/etc/nameserver_$1
+ /sbin/route add $7 -iface $1
fi
if [ "$8" = "dns2" ]
echo $9 >> /var/etc/nameserver_$1
- /sbin/route add $9 -if $1
+ /sbin/route add $9 -iface $1
fi
# let the configuration system know that the ip has changed.
OpenPOWER on IntegriCloud