mirror of
https://github.com/Stichting-MINIX-Research-Foundation/netbsd.git
synced 2025-08-09 05:59:13 -04:00
22 lines
346 B
Bash
22 lines
346 B
Bash
#!/bin/sh
|
|
# This script, when run, runs ntp-wait if ntpd is enabled.
|
|
|
|
# PROVIDE: ntpwait
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="ntpwait"
|
|
rcvar="ntpwait_enable"
|
|
start_cmd="ntpwait_start"
|
|
ntp_wait="/usr/sbin/ntp-wait"
|
|
|
|
load_rc_config "$name"
|
|
|
|
ntpwait_start() {
|
|
if checkyesno ntpd_enable; then
|
|
$ntp_wait -v
|
|
fi
|
|
}
|
|
|
|
run_rc_command "$1"
|