diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-10-13 22:49:06 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-10-13 22:49:06 +0000 |
commit | 28ec82f1571daab3b0af8969eaf9c75903bc38b0 (patch) | |
tree | a97563b0cff86fa9ddf4e3270287191575d88433 /usr/local | |
parent | 5252f90906d49a994db1ba547176292a20152470 (diff) | |
download | pfsense-28ec82f1571daab3b0af8969eaf9c75903bc38b0.zip pfsense-28ec82f1571daab3b0af8969eaf9c75903bc38b0.tar.gz |
Actually apply fixes to the correct files.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/sbin/ppp-linkup | 11 | ||||
-rwxr-xr-x | usr/local/sbin/pppoe-linkup | 2 | ||||
-rwxr-xr-x | usr/local/sbin/pptp-linkup | 2 |
3 files changed, 8 insertions, 7 deletions
diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup index 6cf1c2f..2e5bafd 100755 --- a/usr/local/sbin/ppp-linkup +++ b/usr/local/sbin/ppp-linkup @@ -10,12 +10,13 @@ unset SERVER_PORT SCRIPT_NAME SERVER_NAME # write nameservers to file if [ "$6" = "dns1" ]; then - echo $7 >> /var/etc/nameservers.conf + /bin/echo $7 >> /var/etc/nameservers.conf fi if [ "$8" = "dns2" ]; then - echo $9 >> /var/etc/nameservers.conf + /bin/echo $9 >> /var/etc/nameservers.conf fi -# let the configuration system know that the -# WAN IP address has changed -echo wan > /tmp/rc.newwanip +# let the configuration system know that the ip has changed. +/bin/echo $1 > /tmp/rc.newwanip +/bin/echo $4 /tmp/$1_router + diff --git a/usr/local/sbin/pppoe-linkup b/usr/local/sbin/pppoe-linkup index 19cdad0..306f4a8 100755 --- a/usr/local/sbin/pppoe-linkup +++ b/usr/local/sbin/pppoe-linkup @@ -2,6 +2,6 @@ # record login /usr/bin/logger -p local3.info "login,$1,$4,$5" -/bin/echo $4 /tmp/$1_router + /sbin/ifconfig $1 group pppoe diff --git a/usr/local/sbin/pptp-linkup b/usr/local/sbin/pptp-linkup index 6d2bcb6..57eebd8 100755 --- a/usr/local/sbin/pptp-linkup +++ b/usr/local/sbin/pptp-linkup @@ -2,6 +2,6 @@ # record login /usr/bin/logger -p local3.info "login,$1,$4,$5" -/bin/echo $4 /tmp/$1_router + /sbin/ifconfig $1 group pptp |