diff options
Diffstat (limited to 'etc/rc.d/hostid')
-rw-r--r-- | etc/rc.d/hostid | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc.d/hostid b/etc/rc.d/hostid index 0f3d167..d4b56c5 100644 --- a/etc/rc.d/hostid +++ b/etc/rc.d/hostid @@ -47,10 +47,12 @@ hostid_set() # Generate hostid based on hostuuid - take first four bytes from md5(uuid). id=`echo -n $uuid | /sbin/md5` id="0x${id%????????????????????????}" + # Set both kern.hostuuid and kern.hostid. - echo "Setting hostuuid: ${uuid}." + # + [ -z "${rc_quiet}" ] && echo "Setting hostuuid: ${uuid}." ${SYSCTL_W} kern.hostuuid="${uuid}" >/dev/null - echo "Setting hostid: ${id}." + [ -z "${rc_quiet}" ] && echo "Setting hostid: ${id}." ${SYSCTL_W} kern.hostid=${id} >/dev/null } |