"eth0: is not necessarily always true or portable you probably want to extract a method to get the interface.