Changeset 2253 in MondoRescue for branches/2.2.9/mindi/rootfs/sbin/start-nfs
- Timestamp:
- Jul 5, 2009, 2:42:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/rootfs/sbin/start-nfs
r2191 r2253 17 17 ipgateway=`grep nfs-client-defgw /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-` 18 18 ipconf="" 19 script="" 19 20 export nfsmount=`grep nfs-server-mount /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-` 20 21 export imgname=`grep iso-prefix /tmp/mondo-restore.cfg 2> /dev/null | cut -d' ' -f2-` … … 34 35 echo $i | grep -qi prefix= && export imgname=`echo $i | cut -d= -f2` 35 36 echo $i | grep -qi nfspath= && export dirimg=`echo $i | cut -d= -f2` 37 echo $i | grep -qi script= && script=`echo $i | cut -d= -f2` 36 38 done 37 39 … … 74 76 LogIt "Mounting NFS image ${imgname}-1.iso in $dirimg on /mnt/cdrom in loopback" 75 77 mount -o ro,loop -t iso9660 /tmp/isodir/$dirimg/${imgname}-1.iso /mnt/cdrom 78 79 # Save the script on the NFS share locally 80 if [ echo "$script" | grep -E "^/tmp/isodir" ]; then 81 cp $script /tmp 82 LogIt "Copying $script under /tmp" 83 fi 76 84 fi
Note:
See TracChangeset
for help on using the changeset viewer.