diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-11-24 08:44:24 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-12-15 08:12:25 +0100 |
commit | acc3a3ef900ad92ccca57aeb5f7e446f8bd4745d (patch) | |
tree | 2c42bbe475dc85f3f6ed734d6a3f341877b2b216 /defaultenv/defaultenv-2-base/init/automount | |
parent | eb995e0e09523cc1128563199340dab327dafabe (diff) | |
download | barebox-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 'defaultenv/defaultenv-2-base/init/automount')
-rw-r--r-- | defaultenv/defaultenv-2-base/init/automount | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/defaultenv/defaultenv-2-base/init/automount b/defaultenv/defaultenv-2-base/init/automount index 959b2c148e..5e0cb4d938 100644 --- a/defaultenv/defaultenv-2-base/init/automount +++ b/defaultenv/defaultenv-2-base/init/automount @@ -3,12 +3,12 @@ # automount tftp server based on $eth0.serverip 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' # automount nfs server's nfsroot mkdir -p /mnt/nfs -automount /mnt/nfs 'ifup eth0 && mount -t nfs ${eth0.serverip}:/home/${global.user}/nfsroot/${global.hostname} /mnt/nfs' +automount /mnt/nfs 'ifup -a && mount -t nfs ${global.net.server}:/home/${global.user}/nfsroot/${global.hostname} /mnt/nfs' # FAT on usb disk example |