nbd 9e8857c88d only start ntpd from hotplug
git-svn-id: svn://svn.openwrt.org/openwrt/packages@12539 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-05 18:22:39 +00:00

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