Changeset View
Changeset View
Standalone View
Standalone View
etc/rc.d/ntpdate
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: ntpdate | # PROVIDE: ntpdate | ||||
# REQUIRE: NETWORKING syslogd | # REQUIRE: NETWORKING syslogd | ||||
# KEYWORD: nojail | # KEYWORD: nojail | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="ntpdate" | name="ntpdate" | ||||
desc="Set the date and time via NTP" | |||||
rcvar="ntpdate_enable" | rcvar="ntpdate_enable" | ||||
stop_cmd=":" | stop_cmd=":" | ||||
start_cmd="ntpdate_start" | start_cmd="ntpdate_start" | ||||
ntpdate_start() | ntpdate_start() | ||||
{ | { | ||||
if [ -z "$ntpdate_hosts" -a -f "$ntpdate_config" ]; then | if [ -z "$ntpdate_hosts" -a -f "$ntpdate_config" ]; then | ||||
ntpdate_hosts=`awk ' | ntpdate_hosts=`awk ' | ||||
Show All 14 Lines |