From 68abe9bdf27f0d7312ec4250b8ecabc6f933ff90 Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Tue, 6 May 2008 10:40:20 +0000 Subject: [PATCH] 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 --- etc/rc.d/hostid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.d/hostid b/etc/rc.d/hostid index 77f5b9eb0878..0f3d167b516e 100644 --- a/etc/rc.d/hostid +++ b/etc/rc.d/hostid @@ -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}."