florian 9c66664108 Create the directory for the drift file (#1898)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7664 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-18 15:18:18 +00:00

14 lines
196 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=60
start() {
mkdir -p `awk -F: '/^ntp:/{print $6}' /etc/passwd`
mkdir -p /var/db/
/usr/sbin/ntpd -s
}
stop() {
killall ntpd
}