script help for simple failover (no bonding)

Just getting aquainted with failover scripting. So far, what I have found for scripts and tutorials discuss bonding with failover. I need to find a script that simply enables/disables interfaces, based upon network availability. Does someone have a good doc and script for this?

To clarify: I have a preferred wireless link I want used any time it is available, so it’s important the scripting always checks for that link being up, and does not use the secondary link unless the primary one is down.

An easy way to do this is in IP > Routes. Add your routes, making the Distance value larger on the secondary route. Something like this example: http://wiki.mikrotik.com/wiki/Two_gateways_failover

Yes, that worked!

Thank you