[PC-BSD Commits] r5187 - pcbsd/trunk/pc-sysinstall/backend

svn at pcbsd.org svn at pcbsd.org
Wed Dec 2 05:59:20 PST 2009


Author: kris
Date: 2009-12-02 05:59:20 -0800 (Wed, 02 Dec 2009)
New Revision: 5187

Modified:
   pcbsd/trunk/pc-sysinstall/backend/functions-extractimage.sh
Log:

Added support to backend to use our .count files, we ship with freebsd / pcbsd dist files, which lets
a front-end display progress of install easily



Modified: pcbsd/trunk/pc-sysinstall/backend/functions-extractimage.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend/functions-extractimage.sh	2009-12-01 22:45:31 UTC (rev 5186)
+++ pcbsd/trunk/pc-sysinstall/backend/functions-extractimage.sh	2009-12-02 13:59:20 UTC (rev 5187)
@@ -11,6 +11,11 @@
     exit_err "ERROR: Called extaction with no install file set!"
   fi
 
+  # Check if we have a .count file, and echo it out for a front-end to use in progress bars
+  if [ -e "${INSFILE}.count" ]
+  then
+    echo "INSTALLCOUNT: `${INSFILE}.count`"
+  fi
 
   # Check if we are doing an upgrade, and if so use our exclude list
   if [ "${INSTALLMODE}" = "upgrade" ]
@@ -87,6 +92,12 @@
   # Do the fetch of the archive now
   rc_halt_echo "curl -o ${OUTFILE} ${FTPPATH}/${INSFILE}"
 
+  # Check to see if there is a .count file for this install
+  rc_nohalt "curl -o ${OUTFILE}.count ${FTPPATH}/${INSFILE}.count"
+
+  # Check to see if there is a .md5 file for this install
+  rc_nohalt "curl -o ${OUTFILE}.md5 ${FTPPATH}/${INSFILE}.md5"
+
   # Done fetching, now reset the INSFILE to our downloaded archived
   INSFILE="${OUTFILE}" ; export INSFILE
 



More information about the Commits mailing list