Changeset 2253 in MondoRescue for branches/2.2.9/mindi/rootfs
- Timestamp:
- Jul 5, 2009, 2:42:33 AM (16 years ago)
- Location:
- branches/2.2.9/mindi/rootfs/sbin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/rootfs/sbin/init
r2252 r2253 835 835 echo $i | grep -qi script= && script=`echo $i | cut -d= -f2` 836 836 done 837 # start-nfs moved it under /tmp as the NFS share is already unmounted 838 if [ "`echo $script | grep -E '^/tmp/isodir'`" ]; then 839 script=`echo $script | sed 's|^/tmp/isodir|/tmp|'` 840 fi 837 841 if [ -x $script ]; then 838 842 echo "Executing final script $script" 839 843 LogIt "Executing final script $script" 840 mount-me 844 if [ "`echo $script | grep -E '^/mnt/RESTORING'`" ]; then 845 mount-me 846 fi 841 847 $script 842 unmount-me 848 if [ "`echo $script | grep -E '^/mnt/RESTORING'`" ]; then 849 unmount-me 850 fi 843 851 fi 844 852 fi -
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.