1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-21 09:29:54 +02:00
openwrt-xburst/package/ppp/files/etc/ppp/ipv6-down
blogic f4ce2dc0a6 fixes ppp ipv6 scripts, signed-off-by: Alina Friedrichsen
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11998 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-29 23:40:19 +00:00

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 del default gw ${gw} dev ${dev}
fi