ADD do-when-up

Something I find occasionally useful - a do-when-up script.
Basically waits for a host to come online (determined by ping) before executing a given command.