freedomboneeee/tests/check-ntp-sources.sh

10 lines
207 B
Bash

#!/bin/bash
if [ -f /etc/ntp.conf ];then
if ! sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' /etc/ntp.conf | grep server;then
exit 1
fi
else
exit 1
fi