#!/bin/bash
. /usr/lib/eole/diagnose.sh
EchoGras "*** Serveur DHCP"
if [ $(CreoleGet activer_dhcp) = 'oui' ];then
    TestPid DHCP dhcpd
else
    Inactif "DHCP"
fi
adresse_ip_tftp="$(CreoleGet adresse_ip_tftp '')"
if [ -n "$adresse_ip_tftp" ];then
    # test possible uniquement si TFTP local (#5525)
    if [ "$adresse_ip_tftp" = "$(CreoleGet adresse_ip_eth0)" ] ||
       [ "$adresse_ip_tftp" = "$(CreoleGet adresse_ip_fichier_link '')" ];then
        TestUDP TFTP 69 dhcp
    else
        printf ".  %${len_pf}s => " "TFTP"
        EchoOrange "Distant"
    fi
fi
echo
exit 0
