Added deprecation test with infinite lifetimes (reported by SwedeMike@IRC).
Rewrote the IP address checks to use ip -4/ip -6 instead of ifconfig.