13 desc="Save unique host ID to disk"
14 start_cmd="hostid_save"
20 current_hostid=`$SYSCTL_N kern.hostuuid`
22 if [ -r ${hostid_file} ]; then
23 read saved_hostid < ${hostid_file}
24 if [ ${saved_hostid} = ${current_hostid} ]; then
29 echo ${current_hostid} > ${hostid_file}
31 warn "could not store hostuuid in ${hostid_file}."