Specify the full path to the md5(1) binary so the script will

still work even if it's not in the shell's path.

PR: conf/122215
MFC after: 1 week
This commit is contained in:
Mike Makonnen 2008-05-06 10:40:20 +00:00
parent e91ff25c0c
commit 68abe9bdf2

View File

@ -45,7 +45,7 @@ hostid_set()
{
uuid=$1
# Generate hostid based on hostuuid - take first four bytes from md5(uuid).
id=`echo -n $uuid | md5`
id=`echo -n $uuid | /sbin/md5`
id="0x${id%????????????????????????}"
# Set both kern.hostuuid and kern.hostid.
echo "Setting hostuuid: ${uuid}."