freedombone/tests/check-ntp-sources.sh

10 lines
205 B
Bash
Raw Normal View History

#!/bin/bash
if [ -f /etc/ntp.conf ];then
2017-06-26 14:19:39 +02:00
if ! sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' /etc/ntp.conf | grep pool;then
exit 1
fi
else
exit 1
fi