mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-08 03:49:57 +00:00
ntp: add status for initscript
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
committed by
Joe MacDonald
parent
c78397ecdf
commit
273ae8399e
@@ -20,6 +20,9 @@ test -x $DAEMON -a -r /etc/ntp.conf || exit 0
|
|||||||
# rcS contains TICKADJ
|
# rcS contains TICKADJ
|
||||||
test -r /etc/default/rcS && . /etc/default/rcS
|
test -r /etc/default/rcS && . /etc/default/rcS
|
||||||
|
|
||||||
|
# Source function library.
|
||||||
|
. /etc/init.d/functions
|
||||||
|
|
||||||
# Functions to do individual actions
|
# Functions to do individual actions
|
||||||
settick(){
|
settick(){
|
||||||
# If TICKADJ is set we *must* adjust it before we start, because the
|
# If TICKADJ is set we *must* adjust it before we start, because the
|
||||||
@@ -68,8 +71,12 @@ case "$1" in
|
|||||||
stopdaemon
|
stopdaemon
|
||||||
startdaemon
|
startdaemon
|
||||||
;;
|
;;
|
||||||
|
status)
|
||||||
|
status /usr/sbin/ntpd;
|
||||||
|
exit $?
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: ntpd { start | stop | restart | reload }" >&2
|
echo "Usage: ntpd { start | stop | status | restart | reload }" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user