blob: 9ece44ad834b8891ecddb56a776e96b8e4ac5730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
gw=$4
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
|