summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-12-05 21:23:39 +0000
committerRoy Marples <roy@marples.name>2009-12-05 21:23:39 +0000
commit775d56b877876dacca8939706445ce5ab3920f7d (patch)
tree2fefa1b95863e8b51676033cccf1a261fcc0d20a
parent22e2a4f0a156c566f0c460c2229a19dbff4e0553 (diff)
downloadopenrc-775d56b877876dacca8939706445ce5ab3920f7d.tar.gz
openrc-775d56b877876dacca8939706445ce5ab3920f7d.tar.bz2
openrc-775d56b877876dacca8939706445ce5ab3920f7d.tar.xz
Document multiple routes, fixes #210.
-rw-r--r--conf.d/staticroute.BSD8
-rw-r--r--conf.d/staticroute.Linux11
-rw-r--r--init.d/staticroute.in1
3 files changed, 14 insertions, 6 deletions
diff --git a/conf.d/staticroute.BSD b/conf.d/staticroute.BSD
index 01e0ea3..4798473 100644
--- a/conf.d/staticroute.BSD
+++ b/conf.d/staticroute.BSD
@@ -1,2 +1,6 @@
-# Example static route. See route(8) for syntax.
-#staticroute="net 192.168.0.0 -netmask 255.255.0.0 10.73.1.1"
+# Separate multiple routes using ; or new lines.
+# /etc/route.conf(5) takes precedence over this configuration.
+
+# Example static routes. See route(8) for syntax.
+#staticroute="net 192.168.0.0 -netmask 255.255.255.0 10.73.1.1
+#net 192.168.1.0 -netmask 255.255.255.0 10.73.1.1"
diff --git a/conf.d/staticroute.Linux b/conf.d/staticroute.Linux
index 15956cd..68d22eb 100644
--- a/conf.d/staticroute.Linux
+++ b/conf.d/staticroute.Linux
@@ -1,5 +1,8 @@
-# Example static route. See route(8) for syntax.
-#staticroute="net 192.168.0.0 netmask 255.255.0.0 gw 10.73.1.1"
+# Separate multiple routes using ; or new lines.
-# Example static route using iproute2. See ip(8) for syntax.
-#staticiproute="192.168.0.0/24 via 10.73.1.1"
+# Example static routes. See route(8) for syntax.
+#staticroute="net 192.168.0.0 netmask 255.255.255.0 gw 10.73.1.1
+#net 192.168.1.0 netmask 255.255.255.0 gw 10.73.1.1"
+
+# Example static routes using iproute2. See ip(8) for syntax.
+#staticiproute="192.168.0.0/24 via 10.73.1.1; 192.168.1.0/24 via 10.73.1.1"
diff --git a/init.d/staticroute.in b/init.d/staticroute.in
index 8aea55c..9f38b56 100644
--- a/init.d/staticroute.in
+++ b/init.d/staticroute.in
@@ -28,6 +28,7 @@ pre_flight_checks()
dump_args()
{
+ # Route configuration file, as used by the NetBSD RC system
if [ -s /etc/route.conf ]; then
cat /etc/route.conf
return $?