1 |
commit: 1875db4ff6cdbed45f4375a2cc04f2fe55f25a32 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 28 17:17:58 2011 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 28 17:17:58 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=1875db4f |
7 |
|
8 |
net: document up_before_preup for BSD |
9 |
|
10 |
--- |
11 |
doc/net.example.BSD.in | 11 +++++++++++ |
12 |
1 files changed, 11 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/doc/net.example.BSD.in b/doc/net.example.BSD.in |
15 |
index 2329fa2..585f73d 100644 |
16 |
--- a/doc/net.example.BSD.in |
17 |
+++ b/doc/net.example.BSD.in |
18 |
@@ -388,6 +388,17 @@ |
19 |
# |
20 |
# ${IFACE} is set to the interface being brought up/down |
21 |
# ${IFVAR} is ${IFACE} converted to variable name bash allows |
22 |
+# |
23 |
+# For historical and compatibility reasons, preup is actually normally called |
24 |
+# in the following sequence: up ; preup ; up. |
25 |
+# The first up causes the kernel to initialize the device, so |
26 |
+# that it is available for use in the preup function. However, for some |
27 |
+# hardware, e.g. CAN devices, some configuration is needed before trying to up |
28 |
+# the interface will actually work. For such hardware, the |
29 |
+# up_before_preup variables will allow skipping the first up call if set |
30 |
+# to yes. |
31 |
+#up_before_preup_IFVAR="NO" |
32 |
+#up_before_preup="NO" |
33 |
|
34 |
#preup() { |
35 |
# # Remember to return 0 on success |