summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/afi-gf/defaultenv-gf/init/automount
blob: c67bd1ba505b5d70fb90b63f999c525f311e68d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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'