summaryrefslogtreecommitdiff
path: root/conf.d
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-25 13:44:41 +0000
committerRoy Marples <roy@marples.name>2009-04-25 13:44:41 +0000
commitf51d8d0b7d8ee124b09445826059f20a7f3951be (patch)
treef47291b6df0af1bb250df11feb24f9c2a382d57e /conf.d
parent42580d67b835027c67741adae966847f2a93ef89 (diff)
downloadopenrc-f51d8d0b7d8ee124b09445826059f20a7f3951be.tar.gz
openrc-f51d8d0b7d8ee124b09445826059f20a7f3951be.tar.bz2
openrc-f51d8d0b7d8ee124b09445826059f20a7f3951be.tar.xz
Document interfaces variable useage a bit better.
Diffstat (limited to 'conf.d')
-rw-r--r--conf.d/network.Linux30
-rw-r--r--conf.d/network.in7
2 files changed, 19 insertions, 18 deletions
diff --git a/conf.d/network.Linux b/conf.d/network.Linux
index 395c1cc..3c230fe 100644
--- a/conf.d/network.Linux
+++ b/conf.d/network.Linux
@@ -1,27 +1,27 @@
# ifconfig under Linux is not that powerful and doesn't easily handle
# multiple addresses
# On the other hand, ip (iproute2) is quite powerful and is also supported
-# ip_eth0="192.168.0.10/24; 192.168.10.10/24"
+#ip_eth0="192.168.0.10/24; 192.168.10.10/24"
# Create a bonded interface
-# interfaces="bond0"
-# ifup_bond0="modprobe bonding; ifconfig \$int up; ifenslave \$int bge0"
-# ifconfig_bond0="192.168.0.10 netmask 255.255.255.0"
-# ifdown_bond0="rmmod bonding"
+#interfaces="bond0"
+#ifup_bond0="modprobe bonding; ifconfig \$int up; ifenslave \$int bge0"
+#ifconfig_bond0="192.168.0.10 netmask 255.255.255.0"
+#ifdown_bond0="rmmod bonding"
# Create a bridged interface - let dhcpcd configure the address
-# interfaces="br0"
-# ifup_br0="brctl addbr \$int; brctl add \$int eth1; brtctl add \$int eth2"
-# ifdown_br0="ifconfig \$int down; btctl delbr \$int"
+#interfaces="br0"
+#ifup_br0="brctl addbr \$int; brctl add \$int eth1; brtctl add \$int eth2"
+#ifdown_br0="ifconfig \$int down; btctl delbr \$int"
# Create VLAN
-# interfaces="eth0_2 eth0_3 eth0_4"
-# ifup_eth0="vconfig add \$int 2; vconfig add \$int 3; vconfig add \$int 4"
-# ifconfig_eth0_2="192.168.2.10 netmask 255.255.255.0"
-# ifconfig_eth0_3="192.168.3.10 netmask 255.255.255.0"
-# ifconfig_eth0_4="192.168.4.10 netmask 255.255.255.0"
-# ifdown_eth0="vconfig rem \$int.2; vconfig rem \$int.3; vconfig rem \$int.4"
+#interfaces="eth0_2 eth0_3 eth0_4"
+#ifup_eth0="vconfig add \$int 2; vconfig add \$int 3; vconfig add \$int 4"
+#ifconfig_eth0_2="192.168.2.10 netmask 255.255.255.0"
+#ifconfig_eth0_3="192.168.3.10 netmask 255.255.255.0"
+#ifconfig_eth0_4="192.168.4.10 netmask 255.255.255.0"
+#ifdown_eth0="vconfig rem \$int.2; vconfig rem \$int.3; vconfig rem \$int.4"
# Normally you would use wpa_supplicant to configure wireless, but you can
# use iwconfig also
-# ifup_wlan0="iwconfig \$int key s:secretkey enc open essid foobar"
+#ifup_wlan0="iwconfig \$int key s:secretkey enc open essid foobar"
diff --git a/conf.d/network.in b/conf.d/network.in
index a016205..2719fa8 100644
--- a/conf.d/network.in
+++ b/conf.d/network.in
@@ -2,15 +2,16 @@
# Seperate commands with ;
# Prefix with ! to run a shell script.
# Use \$int to represent the interface
-# ifconfig_eth0="192.168.0.10 netmask 255.255.255.0"
+#ifconfig_eth0="192.168.0.10 netmask 255.255.255.0"
# You also have ifup_eth0 and ifdown_eth0 to run other commands when
# eth0 is started and stopped.
# You can assign a default route
-# defaultroute="192.168.0.1"
+#defaultroute="192.168.0.1"
# Lastly, the interfaces variable pulls in virtual interfaces that cannot
-# be automatically detected.
+# be automatically detected.
+#interfaces="br0 bond0 vlan0"
# You can also use files instead of variables here if you like:
# /etc/ifconfig.eth0 is equivalent to ifconfig_eth0