summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-04-06 15:10:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-04-09 08:49:30 +0200
commitb0f7425f922d371737804a5a9a213232c6fe0265 (patch)
tree5ada7bae61900e0b95895438f169942a5485ce18 /Documentation
parentbd9ad3a602295fb9aa8882fbf27c54288b150d5f (diff)
downloadbarebox-b0f7425f922d371737804a5a9a213232c6fe0265.tar.gz
barebox-b0f7425f922d371737804a5a9a213232c6fe0265.tar.xz
net: on ifup -a only detect devices when necessary
For network boot we once used to hardcode eth0, but in latest changes this was changed to work with different network devices and the 'ifup eth0' was replaced with 'ifup -a' which lead to the result that we now detect all devices in order to eventually also bring up USB network adapters. In most of the cases this is not desired. When a board has internal network support this is likely to be used. With this patch we only detect all devices when we do not have a network device already. For the unusual case in which a USB network adapter shall be used even when an internal network interface is present we introduce the global variable "global.net.ifup_force_detect" which can be used to force detection of devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/user/networking.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/user/networking.rst b/Documentation/user/networking.rst
index 5822165281..6bb99b0da2 100644
--- a/Documentation/user/networking.rst
+++ b/Documentation/user/networking.rst
@@ -51,6 +51,10 @@ device:
| global.net.nameserver | ipv4 address | The DNS server used for resolving host names. |
| | | May be set by DHCP |
+------------------------------+--------------+------------------------------------------------+
+| global.net.ifup_force_detect | boolean | Set to true if your network device is not |
+| | | detected automatically during start (i.e. for |
+| | | USB network adapters) |
++------------------------------+--------------+------------------------------------------------+
The first step for networking is configuring the network device. The network
device is usually ``eth0``. The current configuration can be viewed with the