parent
5bc6d1c39e
commit
f77a9849c0
@ -1,2 +1,16 @@ |
||||
#!/bin/sh |
||||
route -A inet6 del $4 dev $1 |
||||
|
||||
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 |
||||
|
@ -1,2 +1,16 @@ |
||||
#!/bin/sh |
||||
route -A inet6 add default $4 dev $1 |
||||
|
||||
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 |
||||
|
Loading…
Reference in new issue