7 # REQUIRE: mountcritremote FILESYSTEMS
12 : ${machine_id_file:=/var/db/machine-id}
13 : ${machine_id_perms:=444}
15 desc="Update ${machine_id_file}"
16 rcvar="machine_id_enable"
17 start_cmd="machine_id_start"
23 if [ ! -f ${machine_id_file} ] ; then
24 startmsg -n "Creating ${machine_id_file} "
25 t=$(mktemp -t machine-id)
26 /bin/uuidgen -r -c -o $t
27 install -C -o root -g wheel -m ${machine_id_perms} "$t" "${machine_id_file}"