From 6390cdac26862ed5494106797ea9e7a876fdea43 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 25 Jul 2011 19:42:22 +0000 Subject: Use the new change to be less distuptive --- usr/local/sbin/ppp-linkup | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'usr/local') diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup index 12dda9b..1e6cc01 100755 --- a/usr/local/sbin/ppp-linkup +++ b/usr/local/sbin/ppp-linkup @@ -10,14 +10,12 @@ if [ $ALLOWOVERRIDE -gt 0 ]; then # write nameservers to file if [ $6 = "dns1" ]; then echo $7 > /var/etc/nameserver_$1 - /sbin/route delete $7 - /sbin/route add $7 $4 + /sbin/route change $7 $4 fi if [ $8 = "dns2" ]; then echo $9 >> /var/etc/nameserver_$1 - /sbin/route delete $9 - /sbin/route add $9 $4 + /sbin/route change $9 $4 fi /usr/local/sbin/pfSctl -c 'service reload dns' /bin/sleep 1 -- cgit v1.1