1*8585484eSchristos#!/bin/sh 2*8585484eSchristos# This script, when run, runs ntp-wait if ntpd is enabled. 3*8585484eSchristos 4*8585484eSchristos# PROVIDE: ntpwait 5*8585484eSchristos 6*8585484eSchristos. /etc/rc.subr 7*8585484eSchristos 8*8585484eSchristosname="ntpwait" 9*8585484eSchristosrcvar="ntpwait_enable" 10*8585484eSchristosstart_cmd="ntpwait_start" 11*8585484eSchristosntp_wait="/usr/sbin/ntp-wait" 12*8585484eSchristos 13*8585484eSchristosload_rc_config "$name" 14*8585484eSchristos 15*8585484eSchristosntpwait_start() { 16*8585484eSchristos if checkyesno ntpd_enable; then 17*8585484eSchristos $ntp_wait -v 18*8585484eSchristos fi 19*8585484eSchristos} 20*8585484eSchristos 21*8585484eSchristosrun_rc_command "$1" 22