Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/hostid_save
| Show All 38 Lines | hostid_save() | ||||
| read saved_machine_id 2>/dev/null < ${machine_id_file} | read saved_machine_id 2>/dev/null < ${machine_id_file} | ||||
| if [ "${saved_machine_id}" != "${current_machine_id}" ]; then | if [ "${saved_machine_id}" != "${current_machine_id}" ]; then | ||||
| echo "${current_machine_id}" > ${machine_id_file} || | echo "${current_machine_id}" > ${machine_id_file} || | ||||
| warn "could not store hostuuid in ${machine_id_file}." | warn "could not store hostuuid in ${machine_id_file}." | ||||
| fi | fi | ||||
| } | } | ||||
| load_rc_config $name | load_rc_config $name | ||||
| # doesn't make sense to run in a svcj: config setting | |||||
| hostid_save_svcj="NO" | |||||
| run_rc_command "$1" | run_rc_command "$1" | ||||