diff options
author | mtm <mtm@FreeBSD.org> | 2008-06-23 04:46:54 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2008-06-23 04:46:54 +0000 |
commit | a12ffbbd8b36c6672bd6c89e5a538d2678caa9aa (patch) | |
tree | bc1266247fd858c69b6e861ee154d01d8f866893 /etc/rc.d/hostid | |
parent | ab11d78bfd2622cce4e516f6384f6ac9d92cae9a (diff) | |
download | FreeBSD-src-a12ffbbd8b36c6672bd6c89e5a538d2678caa9aa.zip FreeBSD-src-a12ffbbd8b36c6672bd6c89e5a538d2678caa9aa.tar.gz |
Move a lot of diagnostic output behind $rc_quiet in scripts that
implement their own start command.
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 } |