summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-09-02 23:52:25 +0000
committerdelphij <delphij@FreeBSD.org>2013-09-02 23:52:25 +0000
commita866db8b145bb3b71d3076bbda88ca69ce0ac4da (patch)
treedce53bd35d4f5d7a74f60b5d2852f42552567bb3 /etc
parentd6366593f2ee55a600f6df2bb72fab4bf8cc6d6a (diff)
downloadFreeBSD-src-a866db8b145bb3b71d3076bbda88ca69ce0ac4da.zip
FreeBSD-src-a866db8b145bb3b71d3076bbda88ca69ce0ac4da.tar.gz
Create the default router last. This allows using an static
interface route for default routes, which seems to be common among many dedicated hosting providers. Reviewed by: hrs MFC after: 2 weeks
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.d/routing4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/routing b/etc/rc.d/routing
index 74e5472..284aa7d 100755
--- a/etc/rc.d/routing
+++ b/etc/rc.d/routing
@@ -143,7 +143,7 @@ static_inet()
[Nn][Oo] | '')
;;
*)
- static_routes="_default ${static_routes}"
+ static_routes="${static_routes} _default"
route__default="default ${defaultrouter}"
;;
esac
@@ -205,7 +205,7 @@ static_inet6()
[Nn][Oo] | '')
;;
*)
- ipv6_static_routes="_default ${ipv6_static_routes}"
+ ipv6_static_routes="${ipv6_static_routes} _default"
ipv6_route__default="default ${ipv6_defaultrouter}"
;;
esac
OpenPOWER on IntegriCloud