source:
MondoRescue/trunk/mindi/rootfs/sbin/hugo-nfs@
1
| Last change on this file since 1 was 1, checked in by , 20 years ago | |
|---|---|
| File size: 403 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | echo hi > /tmp/NOPAUSE |
| 5 | isodir=/tmp/isodir |
| 6 | if [ ! "`mount | grep $isodir`" ] ; then |
| 7 | ifconfig eth0 192.168.0.33 |
| 8 | echo -en "Mounting NFS..." |
| 9 | mkdir -p $isodir |
| 10 | mount 192.168.0.2:/home/mondostuff $isodir -t nfs -o async |
| 11 | cp $isodir/mondorestore.static / |
| 12 | # umount $isodir |
| 13 | else |
| 14 | cp $isodir/mondorestore.static / |
| 15 | fi |
| 16 | echo "Done." |
| 17 | /mondorestore.static $1 $2 $3 $4 |
| 18 | exit $? |
Note:
See TracBrowser
for help on using the repository browser.
