diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/sbin/ppp-linkup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup index c6c3ac0..a17b3d8 100755 --- a/usr/local/sbin/ppp-linkup +++ b/usr/local/sbin/ppp-linkup @@ -11,12 +11,12 @@ unset SERVER_PORT SCRIPT_NAME SERVER_NAME # write nameservers to file if [ "$6" = "dns1" ] echo $7 > /var/etc/nameserver_$1 - /sbin/route add $7 -iface $1 + /sbin/route add $7 $4 fi if [ "$8" = "dns2" ] echo $9 >> /var/etc/nameserver_$1 - /sbin/route add $9 -iface $1 + /sbin/route add $9 $4 fi # let the configuration system know that the ip has changed. |