1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-20 16:29:53 +02:00
openwrt-xburst/package/ppp/files/etc/ppp/ipv6-up

17 lines
328 B
Plaintext
Raw Normal View History

#!/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