diff options
Diffstat (limited to 'package/ppp/files.old/etc/ppp/ipv6-up')
-rw-r--r-- | package/ppp/files.old/etc/ppp/ipv6-up | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/ppp/files.old/etc/ppp/ipv6-up b/package/ppp/files.old/etc/ppp/ipv6-up new file mode 100644 index 0000000000..5162455fa8 --- /dev/null +++ b/package/ppp/files.old/etc/ppp/ipv6-up @@ -0,0 +1,16 @@ +#!/bin/sh + +gw=$5 +dev=$1 +cfg=$6 + +. /etc/functions.sh # common functions +include /lib/network # include /lib/network/*.sh +scan_interfaces # read and parse the network config + +config_get_bool defaultroute "$cfg" defaultroute 1 + +if [ ${defaultroute} -eq 1 ] +then + route -A inet6 add default gw ${gw} dev ${dev} +fi |