123456789
  1. #!/bin/bash
  2. if [ -f /etc/ntp.conf ];then
  3. if ! sed -e '/^#/d' -e '/^[ \t][ \t]*#/d' -e 's/#.*$//' -e '/^$/d' /etc/ntp.conf | grep pool;then
  4. exit 1
  5. fi
  6. else
  7. exit 1
  8. fi