aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d/routing
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2013-09-02 23:52:25 +0000
committerXin LI <delphij@FreeBSD.org>2013-09-02 23:52:25 +0000
commit335c94e63205aa27d6faacafe6c17b71403cb2e6 (patch)
treedce53bd35d4f5d7a74f60b5d2852f42552567bb3 /etc/rc.d/routing
parenta28c9ff0b77f0dbf7e07e7e7fe84fe9f73a14433 (diff)
downloadsrc-335c94e63205aa27d6faacafe6c17b71403cb2e6.tar.gz
src-335c94e63205aa27d6faacafe6c17b71403cb2e6.zip
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
Notes
Notes: svn path=/head/; revision=255163
Diffstat (limited to 'etc/rc.d/routing')
-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 74e5472d21e8..284aa7d708a8 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