source: packages/net/ntpd/files/ntpd.init @ 10920

Last change on this file since 10920 was 10920, checked in by agb, 9 years ago

[packages] ntpd

-Split ntpdate off of ntpd's init-script, ntpd works properly without it
-Make ntpd start just after ntpdate (if both are installed)
-UCI config for ntpdate may be added, but ntpdate will be retired upstream in the future

  • Property svn:eol-style set to native
File size: 319 bytes
[5908]1#!/bin/sh /etc/rc.common
[10920]2# Copyright (C) 2006-2008
[5908]8start() {
9#       ln -sf /dev/ttyS0 /dev/gps0
10#       /usr/sbin/setgarmin -d /dev/gps -c /etc/setgarmin.conf
[10189]11        stop
[6426]12        /usr/sbin/ntpd -g -p $PIDFILE
15stop() {
[6426]16        [ -f "$PIDFILE" ] && kill $(cat "$PIDFILE") 2>/dev/null >/dev/null
Note: See TracBrowser for help on using the repository browser.