blob: 94f2626d1d44fb213fb2a1cde6537aa38cd279d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/ash
. /etc/rc.subr
start() {
echo -n " * Running ntpdate: "
if [ ! -x ${ntpdate_program} ]; then
log_error "Missing 'ntpdate' program (${ntpdate_program})"
echo "Failed"
return 1
fi
if ${ntpdate_program} ${ntpdate_flags} ${ntpdate_servers} > /dev/null 2>&1; then
echo "Ok"
else
echo "Failed"
exit 1
fi
}
stop() {
return 0
}
rc_run_command "$1" "ntpdate"
|