978d92c2ec1f84973c12064fd5ced6e52f1ee34d
[packages.git] / net / ntpd / files / ntpd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006-2011 OpenWrt.org
3
4 START=65
5
6 SERVICE_USE_PID=1
7
8 start() {
9 #       ln -sf /dev/ttyS0 /dev/gps0
10 #       /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf
11         service_start /sbin/ntpd -g -p /var/run/ntpd.pid
12 }
13
14 stop() {
15         service_stop /sbin/ntpd
16 }