summaryrefslogtreecommitdiffstats
path: root/Documentation/user
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-11-24 08:44:24 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-12-15 08:12:25 +0100
commitacc3a3ef900ad92ccca57aeb5f7e446f8bd4745d (patch)
tree2c42bbe475dc85f3f6ed734d6a3f341877b2b216 /Documentation/user
parenteb995e0e09523cc1128563199340dab327dafabe (diff)
downloadbarebox-acc3a3ef900ad92ccca57aeb5f7e446f8bd4745d.tar.gz
barebox-acc3a3ef900ad92ccca57aeb5f7e446f8bd4745d.tar.xz
net: environment: update automounts
Instead of using "ifup ethx" use "ifup -a" which works with all network interfaces. Also replace "$ethx.serverip" with "$global.net.server". This makes the automount independent of the actual network interface. Remove all board specific /env/init/automount files which were only there to use eth1 instead of the previously hardcoded eth0. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Documentation/user')
-rw-r--r--Documentation/user/automount.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/user/automount.rst b/Documentation/user/automount.rst
index a5e4313576..7de8261354 100644
--- a/Documentation/user/automount.rst
+++ b/Documentation/user/automount.rst
@@ -13,7 +13,7 @@ Typical usage is for accessing the TFTP server. To set up an automount for a
TFTP server, the following is required::
mkdir -p /mnt/tftp
- automount /mnt/tftp 'ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp'
+ automount /mnt/tftp 'ifup -a && mount -t tftp $global.net.server /mnt/tftp'
This creates an automountpoint on ``/mnt/tftp``. Whenever this directory is accessed,
the command ``ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp`` is executed.