Newer
Older
barebox / arch / arm / boards / afi-gf / defaultenv-gf / init / automount
@Sascha Hauer Sascha Hauer on 26 Sep 2014 383 bytes ARM: AM33xx: Add AFI GF board support
#!/bin/sh

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

# automount tftp server based on $eth1.serverip

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

# eth0 is on the mezzanine board
mkdir -p /mnt/tftp-eth0
automount /mnt/tftp-eth0 'ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp'