1,4 → 1,4 |
#!/bin/bash |
http://blog.osdev.org/git/2014/02/13/using-git-on-a-synology-nas.html#!/bin/bash |
# $Id$ |
|
# alcasar-watchdog.sh |
144,10 → 144,10 |
# disconnect users whose equipement is usurped (@MAC) |
if [[ $(expr $arp_reply) -gt 2 ]] |
then |
echo "$(date "+[%x-%X] : ")alcasar-watchdog : $active_ip is usurped ($active_mac). Alcasar disconnect the user ($active_user)." >> /var/Save/logs/security/watchdog.log |
echo "$(date "+[%x-%X] : ")alcasar-watchdog : $active_ip is usurped ($active_mac). Alcasar disconnect the user ($active_user)." >> /var/Save/security/watchdog.log |
logger "alcasar-watchdog : $active_ip is usurped ($active_mac). Alcasar disconnect the user ($active_user)." |
/usr/sbin/chilli_query logout $active_mac |
chmod 644 /var/Save/logs/security/watchdog.log |
chmod 644 /var/Save/security/watchdog.log |
fi |
fi |
done |