mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-07 22:38:55 +00:00
f77a9849c0
SVN-Revision: 9508
17 lines
328 B
Bash
17 lines
328 B
Bash
#!/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 del default gw ${gw} dev ${dev}
|
|
fi
|