13 desc="Save unique host ID to disk"
14 start_cmd="hostid_save"
23 set -- ${current_hostid}
30 current_hostid=`$SYSCTL_N kern.hostuuid`
32 read saved_hostid 2>/dev/null < ${hostid_file}
33 if [ "${saved_hostid}" != "${current_hostid}" ]; then
34 echo "${current_hostid}" > ${hostid_file} ||
35 warn "could not store hostuuid in ${hostid_file}."
40 read saved_machine_id 2>/dev/null < ${machine_id_file}
41 if [ "${saved_machine_id}" != "${current_machine_id}" ]; then
42 echo "${current_machine_id}" > ${machine_id_file} ||
43 warn "could not store hostuuid in ${machine_id_file}."