summaryrefslogtreecommitdiff
path: root/conf.d/network.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-19 08:52:00 +0000
committerRoy Marples <roy@marples.name>2009-04-19 08:52:00 +0000
commit170547010f78a0b195157b60f3c7cae4a3380a86 (patch)
tree4f1a865f0068f1ca43f6c33a0d2e5c218684601a /conf.d/network.in
parent3579663173be18becb5f4ddadf859e5984eab660 (diff)
downloadopenrc-170547010f78a0b195157b60f3c7cae4a3380a86.tar.gz
openrc-170547010f78a0b195157b60f3c7cae4a3380a86.tar.bz2
openrc-170547010f78a0b195157b60f3c7cae4a3380a86.tar.xz
Pull /etc/ifconfig.eth0 into interfaces
Reverse list of interfaces when stopping Improve build for conf.d/network
Diffstat (limited to 'conf.d/network.in')
-rw-r--r--conf.d/network.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/conf.d/network.in b/conf.d/network.in
index 2bb2b07..469494d 100644
--- a/conf.d/network.in
+++ b/conf.d/network.in
@@ -1,10 +1,17 @@
-# Assign static IP addresses and run custom scripts per interface
+# Assign static IP addresses and run custom scripts per interface.
# Seperate commands with ;
-# Prefix with ! to run a shell script
+# Prefix with ! to run a shell script.
# ifconfig_eth0="up; 192.168.0.10 netmask 255.255.255.0; ! echo up"
# You also have ifup_eth0 and ifdown_eth0 to run other commands when
# eth0 is started and stopped.
# Lastly, the interfaces variable pulls in virtual interfaces that cannot
-# be automatically detected.
+# be automatically detected.
+
+# You can also use files instead of variables here if you like:
+# /etc/ifconfig.eth0 is equivalent to ifconfig_eth0
+# /etc/ip.eth0 is equivalent to ifconfig_eth0
+# /etc/ifup.eth0 is equivalent to ifup_eth0
+# /etc/ifdown.eth0 is equivalent to ifdown_eth0
+# Any files found will automatically be put into the interfaces variable.