Permalink
Browse files

avoid overwriting router "iface" setting by host "iface" setting exam…

…ple.

could someone comment?
  • Loading branch information...
1 parent 96dae94 commit 13c32b2356067035c4a9a717bbfd5856e6c6e221 itojun committed Nov 5, 1999
Showing with 29 additions and 23 deletions.
  1. +29 −23 kame/kame/etc/rc.net6
View
@@ -3,29 +3,35 @@
ip6router=NO
ip6mrouter=NO
-#----------
-# manual configurations - in case ip6router=YES
-#route6dflags=
-#mroute6dflags=
-#
-## list of interfaces, and prefix for interfaces
-## NOTE: no trailing double colon necessary here!
-#iface="ed0 ep0"
-#prefix_ed0="fec0:0000:0000:0001"
-#prefix_ep0="fec0:0000:0000:0002"
-#
-## list of outer ip addresses for gif.
-#gifs="gif0 gif1"
-#gifconfig_gif0="10.1.1.1 10.1.2.1"
-#gifconfig_gif1="10.1.1.2 10.1.2.2"
-
-#----------
-# manual configurations - in case ip6router=NO
-# you can configure only single interface, as specification assumes that
-# autoconfigured host has single interface only.
-iface="ed0"
-
-#----------
+if [ X"${ip6router}" = X"YES" ]; then
+ #
+ # manual configurations - in case ip6router=YES
+ #
+# route6dflags=
+# mroute6dflags=
+
+ #
+ # list of interfaces, and prefix for interfaces
+ # NOTE: no trailing double colon necessary here!
+ #
+ iface="ed0 ep0"
+ prefix_ed0="fec0:0000:0000:0001"
+ prefix_ep0="fec0:0000:0000:0002"
+
+ #
+ # list of outer ip addresses for gif.
+ #
+# gifs="gif0 gif1"
+# gifconfig_gif0="10.1.1.1 10.1.2.1"
+# gifconfig_gif1="10.1.1.2 10.1.2.2"
+else
+ #
+ # manual configurations - in case ip6router=NO
+ # you can configure only single interface, as specification assumes that
+ # autoconfigured host has single interface only.
+ #
+ iface="ed0"
+fi
# tool locations
ifconfig=/usr/local/v6/sbin/ifconfig

0 comments on commit 13c32b2

Please sign in to comment.