20 lines
292 B
Plaintext
Raw Normal View History

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=60
boot() {
return 0
}
start() {
mkdir -p `awk -F: '/^ntp:/{print $6}' /etc/passwd`
mkdir -p /var/db/
/usr/sbin/ntpd -s
}
stop() {
# -1 seems insufficient to kill one of the two underlying processes.
killall -9 ntpd
}