am-benchmarks: Add support for am387x-evm machine
[openembedded.git] / recipes / chrony / chrony_start.sh
blobe50a3a482817b39efd4e706ad7308d31ac2677f1
1 #! /bin/bash
3 PROC=`ps | grep chronyd | grep -v grep`;
5 if [ -n "$PROC" ]; then
7 RESULT=`chronyc << ___EOF
8 password opensesame
9 online
10 ___EOF`
12 RESULT2=`echo $RESULT | grep OK`
13 if [ -n "$RESULT2" ]; then
14 echo 1
15 else
16 echo 0;
18 else
19 echo -1;