Do not open multiply topics for the same problem http://forum.mikrotik.com/t/script-reboot-on-connectivity-down/167822/1