Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1866 → Rev 1867

//scripts/alcasar-watchdog.sh
114,8 → 114,8
arp_reply=`/usr/sbin/arping -b -I$INTIF -s$PRIVATE_IP -c1 -w4 $noresponse_ip|grep "Unicast reply"|wc -l`
if [[ $(expr $arp_reply) -eq 0 ]]
then
#on vide les ip inactifs de l'ipset user_not_connected_yet
ipset del user_not_connected_yet $noresponse_ip
#on vide les ip inactifs de l'ipset not_auth_yet
ipset del not_auth_yet $noresponse_ip
logger "alcasar-watchdog $noresponse_ip ($noresponse_mac) can't be contact. Alcasar disconnects the user ($noresponse_user)."
/usr/sbin/chilli_query logout $noresponse_mac
if [[ $noresponse_user == $noresponse_mac ]] # for @mac auth equipments, we must remove the arp entry