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:
parent
e91ff25c0c
commit
68abe9bdf2
@ -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}."
|
||||
|
Loading…
Reference in New Issue
Block a user