Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/ntpdate
| Show All 25 Lines | ntpdate_start() | ||||
| fi | fi | ||||
| if [ -n "$ntpdate_hosts" -o -n "$rc_flags" ]; then | if [ -n "$ntpdate_hosts" -o -n "$rc_flags" ]; then | ||||
| echo "Setting date via ntp." | echo "Setting date via ntp." | ||||
| ${ntpdate_program:-ntpdate} $rc_flags $ntpdate_hosts | ${ntpdate_program:-ntpdate} $rc_flags $ntpdate_hosts | ||||
| fi | fi | ||||
| } | } | ||||
| load_rc_config $name | load_rc_config $name | ||||
| # doesn't make sense to run in a svcj: privileged operations | |||||
| ntpdate_svcj="NO" | |||||
| run_rc_command "$1" | run_rc_command "$1" | ||||