Bug 978261 - find the external ethernet device rather than hard-code eth0
Bug 977493 - Avoid leaking the lock file descriptor to child processes.