--- /dev/null
+server timeserver offline minpoll 2 maxpoll 2
+keyfile /etc/chrony.keys
+commandkey 1
+initstepslew 0 timeserver
+driftfile /etc/chrony.drift
+dumpdir /var/log/chrony
+dumponexit
\ No newline at end of file
--- /dev/null
+1 opensesame
\ No newline at end of file
--- /dev/null
+DESCRIPTION = "Chrony time synchronization"
+LICENSE = "GPL"
+CHRONY_REV="fe2cfe1faee10b3d972f79fe30b5c8ac09469409"
+DEPENDS += "readline"
+REDEPENDS += "readline"
+
+PV = "1.23+gitr${CHRONY_REV}"
+
+SRC_URI = "git://git.tuxfamily.org/gitroot/chrony/chrony.git;protocol=git;rev=${CHRONY_REV} \
+ file://chrony_start.sh \
+ file://chrony_stop.sh \
+ file://init \
+ file://chrony.conf \
+ file://chrony.keys \
+"
+S = "${WORKDIR}/git"
+
+do_configure() {
+ ${S}/configure
+}
+
+do_compile() {
+ unset CPPFLAGS
+ oe_runmake
+}
+
+do_install_append() {
+ install -d ${D}${sysconfdir}/init.d
+ install -m 0644 ${WORKDIR}/chrony.conf ${D}${sysconfdir}/
+ install -m 0644 ${WORKDIR}/chrony.keys ${D}${sysconfdir}/
+ install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/chronyd
+ install -d ${D}${bindir}
+ install -m 0755 ${WORKDIR}/chrony_start.sh ${D}${bindir}
+ install -m 0755 ${WORKDIR}/chrony_stop.sh ${D}${bindir}
+}
\ No newline at end of file
--- /dev/null
+#! /bin/bash
+
+PROC=`ps | grep chronyd | grep -v grep`;
+
+if [ -n "$PROC" ]; then
+
+ RESULT=`chronyc << ___EOF
+ password opensesame
+ online
+___EOF`
+
+ RESULT2=`echo $RESULT | grep OK`
+ if [ -n "$RESULT2" ]; then
+ echo 1
+ else
+ echo 0;
+ fi
+else
+ echo -1;
+fi
\ No newline at end of file
--- /dev/null
+#! /bin/bash
+
+PROC=`ps | grep chronyd | grep -v grep`;
+
+if [ -n "$PROC" ]; then
+
+ RESULT=`chronyc << ___EOF
+ password opensesame
+ offline
+___EOF`
+
+ RESULT2=`echo $RESULT | grep OK`
+ if [ -n "$RESULT2" ]; then
+ echo 1
+ else
+ echo 0;
+ fi
+else
+ echo -1;
+fi
\ No newline at end of file
--- /dev/null
+if [ -f /usr/bin/chronyd -a -f /etc/chrony.conf ]; then
+ /usr/bin/chronyd
+ echo "Started chronyd"
+fi