From 5a73004904de39f4383b58a6eea8f71b2ad839f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Thu, 28 Jan 2010 20:07:46 +0000 Subject: Simplify recording of gateway coming form ppp configuration. --- sbin/ppp-script | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/ppp-script b/sbin/ppp-script index e0caffa..f56ef6c 100755 --- a/sbin/ppp-script +++ b/sbin/ppp-script @@ -1,7 +1,7 @@ #!/bin/sh # Set the router for this interface -/sbin/ifconfig $2 | grep "$1" | awk '{ print $4 }' > /tmp/$2_router +echo $1 > /tmp/$2_router # Remove file if it exists if [ -f /var/etc/nameserver_$2 ]; then @@ -16,4 +16,4 @@ fi # DNS2 if [ "$4" != "DNS1" ]; then echo $4 >> /var/etc/nameserver_$2 -fi \ No newline at end of file +fi -- cgit v1.1