make md5 work on netbsd in factor.sh
parent
2da79d04fd
commit
327c07b67e
|
@ -306,7 +306,10 @@ update_boot_images() {
|
||||||
get_url http://factorcode.org/images/latest/checksums.txt
|
get_url http://factorcode.org/images/latest/checksums.txt
|
||||||
factorcode_md5=`cat checksums.txt|grep $BOOT_IMAGE|cut -f2 -d' '`;
|
factorcode_md5=`cat checksums.txt|grep $BOOT_IMAGE|cut -f2 -d' '`;
|
||||||
set_md5sum
|
set_md5sum
|
||||||
disk_md5=`$MD5SUM $BOOT_IMAGE|cut -f1 -d' '`;
|
case $OS in
|
||||||
|
netbsd) disk_md5=`md5 $BOOT_IMAGE | cut -f4 -d' '`;;
|
||||||
|
*) disk_md5=`$MD5SUM $BOOT_IMAGE|cut -f1 -d' '` ;;
|
||||||
|
esac
|
||||||
echo "Factorcode md5: $factorcode_md5";
|
echo "Factorcode md5: $factorcode_md5";
|
||||||
echo "Disk md5: $disk_md5";
|
echo "Disk md5: $disk_md5";
|
||||||
if [[ "$factorcode_md5" == "$disk_md5" ]] ; then
|
if [[ "$factorcode_md5" == "$disk_md5" ]] ; then
|
||||||
|
|
Loading…
Reference in New Issue