[PC-BSD Commits] r1949 - pcbsd/trunk/mfsroot-overlay/etc

svn at pcbsd.org svn at pcbsd.org
Thu May 22 10:48:37 PDT 2008


Author: tim
Date: 2008-05-22 10:48:37 -0700 (Thu, 22 May 2008)
New Revision: 1949

Added:
   pcbsd/trunk/mfsroot-overlay/etc/IntegrityCheck.sh
Modified:
   pcbsd/trunk/mfsroot-overlay/etc/rc
Log:
Added integrity check to installation procedure

Added: pcbsd/trunk/mfsroot-overlay/etc/IntegrityCheck.sh


Property changes on: pcbsd/trunk/mfsroot-overlay/etc/IntegrityCheck.sh
___________________________________________________________________
Name: svn:executable
   + *

Modified: pcbsd/trunk/mfsroot-overlay/etc/rc
===================================================================
--- pcbsd/trunk/mfsroot-overlay/etc/rc	2008-05-22 15:24:52 UTC (rev 1948)
+++ pcbsd/trunk/mfsroot-overlay/etc/rc	2008-05-22 17:48:37 UTC (rev 1949)
@@ -86,6 +86,20 @@
 echo "Copying setup image into memory... Please Wait..."
 /bin/cp /mnt/uzip/usr.uzip /uzip/
 
+# Run integrity checks
+/etc/IntegrityCheck.sh
+if [ "$?" != "0" ]
+then
+ echo "One or more integrity checks failed. This can indicate a corrupt installation medium."
+ echo "Please reburn your CD and check the md5 of your ISO against the md5 displayed on the"
+ echo "PC-BSD site. To reboot press ENTER. To continue at your own peril type 'continue': "
+ read integrityResponse
+ if [ "$integrityResponse" != "continue" ]
+ then
+  echo "reboot"
+ fi
+fi
+
 # Mount the  "usr" directory
 echo "Mounting /usr"
 MDDEVICE="`/sbin/mdconfig -a -t vnode -o readonly -f /uzip/usr.uzip`.uzip"



More information about the Commits mailing list