diff options
author | ume <ume@FreeBSD.org> | 2017-10-10 01:20:00 +0800 |
---|---|---|
committer | Koop Mast <kwm@rainbow-runner.nl> | 2018-02-04 05:42:06 +0800 |
commit | 63961241f159e657129659536154c110f62c757d (patch) | |
tree | 1356a877296c7160b4e3607772db8c8bfa2f8fd1 /net | |
parent | 026c5b3c2be2db32ef220a25334ffdeae4690dad (diff) | |
download | freebsd-ports-gnome-63961241f159e657129659536154c110f62c757d.tar.gz freebsd-ports-gnome-63961241f159e657129659536154c110f62c757d.tar.zst freebsd-ports-gnome-63961241f159e657129659536154c110f62c757d.zip |
improve fib handling.
Diffstat (limited to 'net')
-rw-r--r-- | net/u6rd/files/u6rd.in | 7 |
1 files changed, 4 insertions, 3 deletions
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" |