diff options
Diffstat (limited to 'tests/chrony')
-rw-r--r-- | tests/chrony | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/chrony b/tests/chrony new file mode 100644 index 0000000..e463f44 --- /dev/null +++ b/tests/chrony @@ -0,0 +1,16 @@ + INITD=chronyd + CONF="/etc/chrony/chrony.conf" + apk_add $@ + echo "server pool.ntp.org" > $CONF + echo "keyfile /etc/chrony/chrony.keys" >> $CONF + echo "commandkey 1" >> $CONF + echo "driftfile /etc/chrony/chrony.drift" >> $CONF + /etc/init.d/$INITD start + pidof $INITD + /etc/init.d/$INITD stop + while pidof $INITD; do\ + echo -n "." >/dev/tty;\ + sleep 1;\ + done + apk_del $@ + rm $CONF |