hostid_save revision 301615
1#!/bin/sh 2# 3# $FreeBSD: stable/10/etc/rc.d/hostid_save 301615 2016-06-08 13:40:07Z ngie $ 4# 5 6# PROVIDE: hostid_save 7# REQUIRE: hostid root 8# KEYWORD: nojail 9 10. /etc/rc.subr 11 12name="hostid_save" 13start_cmd="hostid_save" 14stop_cmd=":" 15rcvar="hostid_enable" 16 17hostid_save() 18{ 19 if [ ! -r ${hostid_file} ]; then 20 $SYSCTL_N kern.hostuuid > ${hostid_file} 21 if [ $? -ne 0 ]; then 22 warn "could not store hostuuid in ${hostid_file}." 23 fi 24 fi 25} 26 27load_rc_config $name 28run_rc_command "$1" 29