18 lines
458 B
Bash
18 lines
458 B
Bash
#!/bin/sh
|
|
|
|
# automount tftp server based on $eth0.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'
|
|
|
|
|
|
# FAT on usb disk example
|
|
|
|
#mkdir -p /mnt/fat
|
|
#automount -d /mnt/fat 'usb && [ -e /dev/disk0.0 ] && mount /dev/disk0.0 /mnt/fat'
|