[PC-BSD Commits] r1972 - pcbsd/trunk/mfsroot-overlay/etc
svn at pcbsd.org
svn at pcbsd.org
Sat May 24 11:20:34 PDT 2008
Author: melkor
Date: 2008-05-24 11:20:34 -0700 (Sat, 24 May 2008)
New Revision: 1972
Modified:
pcbsd/trunk/mfsroot-overlay/etc/IntegrityCheck.sh
Log:
Updated the integrity check to use "md5 -q" instead of many cuts
Modified: pcbsd/trunk/mfsroot-overlay/etc/IntegrityCheck.sh
===================================================================
--- pcbsd/trunk/mfsroot-overlay/etc/IntegrityCheck.sh 2008-05-24 17:49:00 UTC (rev 1971)
+++ pcbsd/trunk/mfsroot-overlay/etc/IntegrityCheck.sh 2008-05-24 18:20:34 UTC (rev 1972)
@@ -8,7 +8,7 @@
echo -n "Checking integrity of uzip filesystem... "
-/sbin/md5 /uzip/usr.uzip | /bin/cut -d "=" -f 2 | /bin/cut -d " " -f 2 | /bin/cmp -s /mnt/uzip/usr.uzip.md5 -
+/sbin/md5 -q /uzip/usr.uzip | /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/cut -d "=" -f 2 | /bin/cut -d " " -f 2 | /bin/cmp -s /mnt/PCBSD.tar.lzma.md5 -
+ /sbin/md5 -q /mnt/PCBSD.tar.lzma | /bin/cmp -s /mnt/PCBSD.tar.lzma.md5 -
if [ "$?" != "0" ]
then
More information about the Commits
mailing list