summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-01-28 20:07:46 +0000
committerErmal Luçi <eri@pfsense.org>2010-01-28 20:07:46 +0000
commit5a73004904de39f4383b58a6eea8f71b2ad839f2 (patch)
tree36906f5f33276ff649773f6ec4fefd92329e08ba
parent30eb929be64fbee3b9a57bb2c5a1c249e0caf66e (diff)
downloadpfsense-5a73004904de39f4383b58a6eea8f71b2ad839f2.zip
pfsense-5a73004904de39f4383b58a6eea8f71b2ad839f2.tar.gz
Simplify recording of gateway coming form ppp configuration.
-rwxr-xr-xsbin/ppp-script4
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
OpenPOWER on IntegriCloud