WAN Failover detection

Found another Script, maybe it can help !

http://forum.mikrotik.com/t/failover-script-with-2-dhcp-client-interfaces-sharing-my-working-script/151350/1