blob: fdcfa360455a182ecbc23b976fa09c91379b9c4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/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'
|