#!/bin/sh

# Description: script using hashdeep tool for chunked disk hashing with sha256

hashbin=/bin/hashdeep
if [ ! -e "$hashbin" ]; then
	echo "Hash tool $hashbin does not exist!"
	exit 2
fi
if [ -z $1 ] ; then
	echo "Usage: $0 <pathname>"
	exec $hashbin -h
	exit 2
fi

blocksize=67108864 # using 64 MB

exec $hashbin -c sha256 -p $blocksize $@

