2006-10-04 20:57:49 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
|
2006-10-15 21:03:30 +00:00
|
|
|
START=60
|
2008-09-05 18:22:39 +00:00
|
|
|
|
|
|
|
boot() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2006-10-04 20:57:49 +00:00
|
|
|
start() {
|
|
|
|
mkdir -p `awk -F: '/^ntp:/{print $6}' /etc/passwd`
|
2007-06-18 15:18:18 +00:00
|
|
|
mkdir -p /var/db/
|
2006-10-04 20:57:49 +00:00
|
|
|
/usr/sbin/ntpd -s
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2010-03-20 12:12:59 +00:00
|
|
|
# -1 seems insufficient to kill one of the two underlying processes.
|
|
|
|
killall -9 ntpd
|
2006-10-04 20:57:49 +00:00
|
|
|
}
|