[SCM] live-startscripts branch, master, updated. 74fde5a52b75b4b142a7c655cc9b4399c0fd1b41

Richard Nelson unixabg at gmail.com
Mon Nov 30 21:58:22 UTC 2009


The following commit has been merged in the master branch:
commit 74fde5a52b75b4b142a7c655cc9b4399c0fd1b41
Author: Richard Nelson <unixabg at gmail.com>
Date:   Mon Nov 30 15:53:59 2009 -0600

    Made test for /vmware folder on systems that will use firmware model.

diff --git a/initscripts/live-vmware-player b/initscripts/live-vmware-player
index cf6a096..6409828 100755
--- a/initscripts/live-vmware-player
+++ b/initscripts/live-vmware-player
@@ -71,8 +71,14 @@ do_start ()
 			echo "Checking for clean scratch file system on ${MOUNTDEV}!" >> /var/log/live-vmware-player.log
 			fsck -C -a ${MOUNTDEV}
 
-			echo "Making the /vmware directory where we will compose the operations for the image." >> /var/log/live-vmware-player.log
-			mkdir -p /vmware
+			# Check for the mount point directory and take correct action.
+			if [ -d '/vmware' ]
+			then
+				echo "The /vmware directory exists and is where we will compose the operations for the image." >> /var/log/live-vmware-player.log
+			else
+				echo "Making the /vmware directory where we will compose the operations for the image." >> /var/log/live-vmware-player.log
+				mkdir -p /vmware
+			fi
 
 			echo "Attempting to mount local scratch device." >> /var/log/live-vmware-player.log
 			mount -v ${MOUNTDEV} /vmware

-- 
live-startscripts



More information about the debian-live-changes mailing list