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

svn at pcbsd.org svn at pcbsd.org
Sat May 24 06:15:02 PDT 2008


Author: kris
Date: 2008-05-24 06:15:02 -0700 (Sat, 24 May 2008)
New Revision: 1962

Modified:
   pcbsd/trunk/mfsroot-overlay/etc/IntegrityCheck.sh
Log:

Updated the integrity check to only compare the md5 sum itself, not the entire
file contents with invalid pathnames



Modified: pcbsd/trunk/mfsroot-overlay/etc/IntegrityCheck.sh
===================================================================
--- pcbsd/trunk/mfsroot-overlay/etc/IntegrityCheck.sh	2008-05-23 17:56:03 UTC (rev 1961)
+++ pcbsd/trunk/mfsroot-overlay/etc/IntegrityCheck.sh	2008-05-24 13:15:02 UTC (rev 1962)
@@ -8,7 +8,7 @@
 
 echo -n "Checking integrity of uzip filesystem... "
 
-/sbin/md5 /uzip/usr.uzip | /bin/cmp -s /uzip/usr.uzip.md5 -
+/sbin/md5 /uzip/usr.uzip | /bin/cut -d "=" -f 2 | /bin/cut -d " " -f 2 | /bin/cmp -s /mnt/uzip/usr.uzip.md5 -
 
 if [ "$?" != "0" ]
 then
@@ -24,7 +24,7 @@
 if [ "$response" != "n" ]
 then
  echo -n "Checking integrity of installer archive... "
- /sbin/md5 /mnt/PCBSD.tar.lzma | /bin/cmp -s /mnt/PCBSD.tar.lzma.md5 -
+ /sbin/md5 /mnt/PCBSD.tar.lzma | /bin/cut -d "=" -f 2 | /bin/cut -d " " -f 2 | /bin/cmp -s /mnt/PCBSD.tar.lzma.md5 -
  
  if [ "$?" != "0" ]
  then



More information about the Commits mailing list