From 63961241f159e657129659536154c110f62c757d Mon Sep 17 00:00:00 2001 From: ume Date: Mon, 9 Oct 2017 17:20:00 +0000 Subject: improve fib handling. --- net/u6rd/files/u6rd.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'net') diff --git a/net/u6rd/files/u6rd.in b/net/u6rd/files/u6rd.in index 6c57e6c14f03..5026f51a9644 100644 --- a/net/u6rd/files/u6rd.in +++ b/net/u6rd/files/u6rd.in @@ -52,7 +52,7 @@ plen_equal() start_precmd() { - ifconfig ${u6rd_interface} create ${iface_fib} + ifconfig ${u6rd_interface} create ifconfig ${u6rd_interface} inet6 -ifdisabled >/dev/null 2>&1 if [ -n "${u6rd_interface_flags}" ]; then ifconfig ${u6rd_interface} ${u6rd_interface_flags} @@ -60,6 +60,9 @@ start_precmd() if [ -n "${u6rd_my_v6_addr}" ]; then ifconfig ${u6rd_interface} inet6 ${u6rd_my_v6_addr} fi + if [ -n "${u6rd_fib}" ]; then + ifconfig ${u6rd_interface} fib ${u6rd_fib} + fi ifconfig ${u6rd_interface} up if ! plen_equal ${u6rd_prefix} ${u6rd_my_v6_addr}; then route delete -inet6 ${u6rd_prefix} ${route_fib} >/dev/null 2>&1 @@ -85,8 +88,6 @@ stop_postcmd() load_rc_config ${name} command_args="-u ${u6rd_username} ${u6rd_interface} ${u6rd_prefix} ${u6rd_relay_v4_addr} ${u6rd_my_v4_addr}" if [ -n "${u6rd_fib}" ]; then - iface_fib="fib ${u6rd_fib}" route_fib="-fib ${u6rd_fib}" - u6rd_fib= fi run_rc_command "$1" -- cgit