summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-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