diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-01-28 20:07:46 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-01-28 20:07:46 +0000 |
commit | 5a73004904de39f4383b58a6eea8f71b2ad839f2 (patch) | |
tree | 36906f5f33276ff649773f6ec4fefd92329e08ba /sbin | |
parent | 30eb929be64fbee3b9a57bb2c5a1c249e0caf66e (diff) | |
download | pfsense-5a73004904de39f4383b58a6eea8f71b2ad839f2.zip pfsense-5a73004904de39f4383b58a6eea8f71b2ad839f2.tar.gz |
Simplify recording of gateway coming form ppp configuration.
Diffstat (limited to 'sbin')
-rwxr-xr-x | sbin/ppp-script | 4 |
1 files changed, 2 insertions, 2 deletions
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 |