Newer
Older
barebox / arch / arm / boards / phytec-som-imx6 / defaultenv-physom-imx6ul-phycore / init / automount
@Stefan Riedmueller Stefan Riedmueller on 11 Jul 2019 403 bytes ARM: phytec-som-imx: imx6ul: Add eMMC support
#!/bin/sh

# automount tftp server based on $eth0.serverip

mkdir -p /mnt/tftp
automount /mnt/tftp 'ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp'

mkdir -p /mnt/mmc
automount -d /mnt/mmc 'mmc0.probe=1 && [ -e /dev/mmc0.0 ] && mount /dev/mmc0.0 /mnt/mmc'

if [ -e /dev/mmc1 ]; then
	mkdir -p /mnt/emmc
	automount -d /mnt/emmc 'mmc1.probe=1 && [ -e /dev/mmc1.0 ] && mount /dev/mmc1.0 /mnt/emmc'
fi