You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/package/ppp/files.old/etc/ppp/ipv6-up

17 lines
328 B
Bash

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