source: branches/packages_10.03.1/net/ntpd/files/ntpd.init @ 28641

Last change on this file since 28641 was 28641, checked in by jow, 5 years ago

[backfire/packages] ntpd: merge r28572

  • Property svn:eol-style set to native
File size: 315 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006-2011 OpenWrt.org
3
4START=65
5
6PIDFILE="/var/run/ntpd.pid"
7
8start() {
9#       ln -sf /dev/ttyS0 /dev/gps0
10#       /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf
11        stop
12        /sbin/ntpd -g -p $PIDFILE
13}
14
15stop() {
16        [ -f "$PIDFILE" ] && kill $(cat "$PIDFILE") 2>/dev/null >/dev/null
17}
Note: See TracBrowser for help on using the repository browser.