repo.or.cz
/
openembedded.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
am-benchmarks: Add support for am387x-evm machine
[openembedded.git]
/
recipes
/
chrony
/
chrony_start.sh
blob
e50a3a482817b39efd4e706ad7308d31ac2677f1
1
#! /bin/bash
2
3
PROC
=
`ps | grep chronyd | grep -v grep`
;
4
5
if
[
-n
"
$PROC
"
];
then
6
7
RESULT
=
`chronyc << ___EOF
8
password opensesame
9
online
10
___EOF`
11
12
RESULT2
=
`echo
$RESULT
| grep OK`
13
if
[
-n
"
$RESULT2
"
];
then
14
echo
1
15
else
16
echo
0
;
17
fi
18
else
19
echo -1
;
20
fi