Skip to content

Commit

Permalink
Revert "Make the ppp-linkup script understand both address families."
Browse files Browse the repository at this point in the history
This reverts commit 310c29c.
  • Loading branch information
jim-p committed Jun 4, 2012
1 parent d427980 commit 2296834
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions usr/local/sbin/ppp-linkup
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2296834

Please sign in to comment.