Changeset b917538 in freewrt for package/openntpd/files/ntpd.init


Ignore:
Timestamp:
Oct 1, 2006, 10:31:51 AM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
edaeca5
Parents:
2f09cbe
Message:
  • sync with changes in trunk
  • lzo2 instead of lzo
  • fix tinc/vtun build
  • security update for openssh/openssl
  • update for iproute2,openvpn,openntpd, iptables and ipp, openswan
  • disable ipv6 in busybox, autoselect this feature for all ipv6 related packages
  • add better startup scripts for openssh and openntpd

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@800 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/openntpd/files/ntpd.init

    r2f09cbe rb917538  
    11#!/bin/sh
     2
    23. /etc/rc.conf
    3 mkdir -p /tmp/.ntp
    4 [ x"$ntpd_flags" = x"NO" ] || /usr/sbin/ntpd $ntpd_flags
     4
     5case $1 in
     6autostart)
     7        test x"$ntpd_flags" = x"NO" && exit 0
     8        exec $0 start
     9        ;;
     10start)
     11        mkdir -p /tmp/.ntp
     12        [ x"$ntpd_flags" = x"NO" ] || /usr/sbin/ntpd $ntpd_flags
     13stop)
     14        killall ntpd
     15        ;;
     16restart)
     17        $0 stop
     18        $0 start
     19        ;;
     20*)
     21        echo "Usage: $0 {start | stop | restart}"
     22        exit 1
     23        ;;
     24esac
     25exit $?
Note: See TracChangeset for help on using the changeset viewer.