diff options
Diffstat (limited to 'arch/arm/boards/highbank/defaultenv-highbank/init/automount')
-rw-r--r-- | arch/arm/boards/highbank/defaultenv-highbank/init/automount | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/boards/highbank/defaultenv-highbank/init/automount b/arch/arm/boards/highbank/defaultenv-highbank/init/automount new file mode 100644 index 0000000000..eb5c07a739 --- /dev/null +++ b/arch/arm/boards/highbank/defaultenv-highbank/init/automount @@ -0,0 +1,22 @@ +#!/bin/sh + +# automount tftp server based on $eth0.serverip + +mkdir -p /mnt/tftp +automount /mnt/tftp 'ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp' + +# SD card slot, boot partition +mkdir -p /mnt/mmc-boot +automount -d /mnt/mmc 'mount /dev/disk0.boot /mnt/mmc-boot' + +# SD card slot, first partition +mkdir -p /mnt/mmc +automount -d /mnt/mmc 'mount /dev/disk0.0 /mnt/mmc' + +# AHCI, boot partition +mkdir -p /mnt/ahci-boot +automount -d /mnt/ahci 'mount /dev/ata0.boot /mnt/ahci-boot' + +# AHCI, first partition +mkdir -p /mnt/ahci +automount -d /mnt/ahci 'mount /dev/ata0.0 /mnt/ahci' |