summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin/ppp-linkup
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/sbin/ppp-linkup')
-rwxr-xr-xusr/local/sbin/ppp-linkup17
1 files changed, 4 insertions, 13 deletions
diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup
index e0fb0c2..12dda9b 100755
--- a/usr/local/sbin/ppp-linkup
+++ b/usr/local/sbin/ppp-linkup
@@ -1,18 +1,9 @@
#!/bin/sh
-if [ "$2" == "inet" ]; then
- # let the configuration system know that the ipv4 has changed.
- /bin/echo $4 > /tmp/$1_router
- /bin/echo $3 > /tmp/$1_ip
- /usr/bin/touch /tmp/$1up
-fi
-
-if [ "$2" == "inet6" ]; then
- # let the configuration system know that the ipv6 has changed.
- /bin/echo $4 |cut -d% -f1 > /tmp/$1_routerv6
- /bin/echo $3 |cut -d% -f1 > /tmp/$1_ipv6
- /usr/bin/touch /tmp/$1upv6
-fi
+# let the configuration system know that the ip has changed.
+/bin/echo $4 > /tmp/$1_router
+/bin/echo $3 > /tmp/$1_ip
+/usr/bin/touch /tmp/$1up
ALLOWOVERRIDE=`/usr/bin/grep dnsallowoverride /conf/config.xml | /usr/bin/wc -l`
if [ $ALLOWOVERRIDE -gt 0 ]; then
OpenPOWER on IntegriCloud