'Check that configured tftpd boot directory matches with actual
Check that tftpd is enabled to autostart'

def check_ctftpd_conf(self, status):

    if (self.checked_family == 'debian'):
        return
    if os.path.exists('/etc/xinetd.d/tftp'):
        f = open('/etc/xinetd.d/tftp')
        re_disable = re.compile('disable.*=.*no')
        for line in f.readlines():
            if (re_disable.search(line) and (not line.strip().startswith('#'))):
                status.append((_("change    'disable'    to    'yes'    in    %(file)s") % {'file': '/etc/xinetd.d/tftp'}))
    if os.path.exists('/etc/xinetd.d/ctftp'):
        f = open('/etc/xinetd.d/ctftp')
        re_disable = re.compile('disable.*=.*yes')
        for line in f.readlines():
            if (re_disable.search(line) and (not line.strip().startswith('#'))):
                status.append((_("change    'disable'    to    'no'    in    %(file)s") % {'file': '/etc/xinetd.d/ctftp'}))
    else:
        status.append('missing    configuration    file:    /etc/xinetd.d/ctftp')
