Ticket #10284: openntpd.patch

File openntpd.patch, 693 bytes (added by flo'-at-'degnet.de, 6 years ago)

patchfile of openntpd init file

  • packages/net/openntpd/files/ntpd.init

    a b  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006-2011 OpenWrt.org 
     2# Copyright (C) 2011 OpenWrt.org 
    33 
    44START=60 
     5STOP=10 
    56 
    6 boot() { 
    7         return 0 
    8 } 
     7NTPD_OPTS="-s" 
     8NTPD_BIN="/usr/sbin/ntpd" 
     9#PID_F="/var/run/ntpd.pid" 
    910 
    1011start() { 
     12        echo "Starting ntpd" 
    1113        mkdir -p `awk -F: '/^network:/{print $6}' /etc/passwd` 
    1214        mkdir -p /var/db/ 
    13         /usr/sbin/ntpd -s 
     15        start-stop-daemon -S -x $NTPD_BIN -b -- $NTPD_OPTS  
    1416} 
    1517 
    1618stop() { 
    17         service_kill ntpd 
     19        echo "Stopping ntpd" 
     20        start-stop-daemon -K -x $NTPD_BIN -u network -q 
    1821}