Newer
Older
barebox / arch / arm / boards / technexion-pico-hobbit / defaultenv-pico-hobbit / init / automount
@Michael Grzeschik Michael Grzeschik on 7 Jun 2017 327 bytes ARM: i.MX6: add Technexion Pico Hobbit support
#!/bin/sh

# automount tftp server based on $eth1.serverip

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

# automount nfs server's nfsroot

mkdir -p /mnt/nfs
automount /mnt/nfs 'ifup eth1 && mount -t nfs ${eth1.serverip}:/home/${global.user}/nfsroot/${global.hostname} /mnt/nfs'