source: trunk/mindi/rootfs/sbin/hugo-nfs @ 30

Last change on this file since 30 was 30, checked in by bcornec, 14 years ago

Id property added on files to allow for better conf. management

  • Property svn:keywords set to Id
File size: 403 bytes
Line 
1#!/bin/sh
2
3set -e
4echo hi > /tmp/NOPAUSE
5isodir=/tmp/isodir
6if [ ! "`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
13else
14    cp $isodir/mondorestore.static /
15fi
16echo "Done."
17/mondorestore.static $1 $2 $3 $4
18exit $?
Note: See TracBrowser for help on using the repository browser.