0a57a8a116
git-svn-id: svn://svn.openwrt.org/openwrt/packages@20317 3c298f89-4303-0410-b956-a3cf2f4a3e73
20 lines
292 B
Bash
20 lines
292 B
Bash
#!/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
|
|
}
|