summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntp/files/ntpd
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/ntp/files/ntpd')
-rwxr-xr-xmeta-networking/recipes-support/ntp/files/ntpd9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/ntp/files/ntpd b/meta-networking/recipes-support/ntp/files/ntpd
index 3cd1c6c585..d1b9c49076 100755
--- a/meta-networking/recipes-support/ntp/files/ntpd
+++ b/meta-networking/recipes-support/ntp/files/ntpd
@@ -20,6 +20,9 @@ test -x $DAEMON -a -r /etc/ntp.conf || exit 0
20# rcS contains TICKADJ 20# rcS contains TICKADJ
21test -r /etc/default/rcS && . /etc/default/rcS 21test -r /etc/default/rcS && . /etc/default/rcS
22 22
23# Source function library.
24. /etc/init.d/functions
25
23# Functions to do individual actions 26# Functions to do individual actions
24settick(){ 27settick(){
25 # If TICKADJ is set we *must* adjust it before we start, because the 28 # If TICKADJ is set we *must* adjust it before we start, because the
@@ -68,8 +71,12 @@ case "$1" in
68 stopdaemon 71 stopdaemon
69 startdaemon 72 startdaemon
70 ;; 73 ;;
74 status)
75 status /usr/sbin/ntpd;
76 exit $?
77 ;;
71 *) 78 *)
72 echo "Usage: ntpd { start | stop | restart | reload }" >&2 79 echo "Usage: ntpd { start | stop | status | restart | reload }" >&2
73 exit 1 80 exit 1
74 ;; 81 ;;
75esac 82esac