Newer
Older
barebox / arch / arm / boards / datamodul-edm-qmx6 / env / init / automount
@Sascha Hauer Sascha Hauer on 3 Feb 2014 356 bytes ARM: rename boards to more consistent naming
#!/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 'mci0.probe=1 && [ -e /dev/disk0.0 ] && mount /dev/disk0.0 /mnt/fat'