summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/highbank/env/init/automount
blob: eb5c07a739d365309595da07994036f04b171971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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'