Newer
Older
barebox / arch / arm / boards / phytec-phyflex-imx6 / defaultenv-phyflex-imx6 / init / automount
@Christian Hemp Christian Hemp on 15 Sep 2014 340 bytes ARM:imx6:phyflex: Add defaultenv
#!/bin/sh

if [ "$1" = menu ]; then
	init-menu-add-entry "$0" "Automountpoints"
	exit
fi

# 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 'mmc2.probe=1 && [ -e /dev/mmc2.0 ] && mount /dev/mmc2.0 /mnt/mmc'