diff options
author | mtm <mtm@FreeBSD.org> | 2008-05-06 10:40:20 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2008-05-06 10:40:20 +0000 |
commit | 9eafaf8cc89bb9625e91b4fff1254a65a2a4f315 (patch) | |
tree | fa6adeed2f02363b5bbd1e00271c7bc10387d069 /etc/rc.d/hostid | |
parent | 60e5d7d0529be9f877e67cf34013ac32320062f0 (diff) | |
download | FreeBSD-src-9eafaf8cc89bb9625e91b4fff1254a65a2a4f315.zip FreeBSD-src-9eafaf8cc89bb9625e91b4fff1254a65a2a4f315.tar.gz |
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
Diffstat (limited to 'etc/rc.d/hostid')
-rw-r--r-- | etc/rc.d/hostid | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/hostid b/etc/rc.d/hostid index 77f5b9e..0f3d167 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}." |