kumquat-buildroot/target/device/valka/target_skeleton/etc/rc.d/11.ntpdate
2008-03-06 18:59:14 +00:00

25 lines
384 B
Bash
Executable File

#!/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"