Root/package/ppp/files/etc/ppp/ipv6-down

1#!/bin/sh
2
3gw=$5
4dev=$1
5cfg=$6
6
7. /etc/functions.sh # common functions
8include /lib/network # include /lib/network/*.sh
9scan_interfaces # read and parse the network config
10
11config_get_bool defaultroute "$cfg" defaultroute 1
12
13if [ ${defaultroute} -eq 1 ]
14then
15    route -A inet6 del default gw ${gw} dev ${dev}
16fi
17

Archive Download this file



interactive