Wait for link to be up before trying to get gateway MAC. Fixes #492.