summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phytec-som-imx6
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2019-06-17 12:00:53 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-06-18 10:11:21 +0200
commit1d873eb8e1644fb6a66e6e08e45cf4547d7ff75a (patch)
treecffc4315c04b302bc920816ae40076835af38dd5 /arch/arm/boards/phytec-som-imx6
parent19a08eb51fe6fe70ab56de7fa1a3fa1250fa6dd1 (diff)
downloadbarebox-1d873eb8e1644fb6a66e6e08e45cf4547d7ff75a.tar.gz
barebox-1d873eb8e1644fb6a66e6e08e45cf4547d7ff75a.tar.xz
ARM: phytec-som-imx6: update automount net entries
It seems that the /mnt/tftp was copied from the defaultenv-2. The defaultenv-2 got a update to make it more robust by enabling all interfaces. During this sync I added a entry to support automount for /mnt/nfs mountpoint. Cc: Stefan Christ <s.christ@phytec.de> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/phytec-som-imx6')
-rw-r--r--arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6-phycore/init/automount11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6-phycore/init/automount b/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6-phycore/init/automount
index 91ded44119..13a5b626b7 100644
--- a/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6-phycore/init/automount
+++ b/arch/arm/boards/phytec-som-imx6/defaultenv-physom-imx6-phycore/init/automount
@@ -1,9 +1,16 @@
#!/bin/sh
-# automount tftp server based on $eth0.serverip
+# automount tftp server
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 -a && mount -t nfs ${global.net.server}:/home/${global.user}/nfsroot/${global.hostname} /mnt/nfs'
+
+# automount phycore specific local mounts
mkdir -p /mnt/mmc
automount -d /mnt/mmc 'mmc0.probe=1 && [ -e /dev/mmc0.0 ] && mount /dev/mmc0.0 /mnt/mmc'