6to4: remove old network scripts
[openwrt/svn-archive/archive.git] / package / ppp / files.old / etc / ppp / ipv6-down
1 #!/bin/sh
2
3 gw=$5
4 dev=$1
5 cfg=$6
6
7 . /etc/functions.sh # common functions
8 include /lib/network # include /lib/network/*.sh
9 scan_interfaces # read and parse the network config
10
11 config_get_bool defaultroute "$cfg" defaultroute 1
12
13 if [ ${defaultroute} -eq 1 ]
14 then
15 route -A inet6 del default gw ${gw} dev ${dev}
16 fi