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
|
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() {
|
|
|
|
killall ntpd
|
|
|
|
}
|