I'm running Ubuntu Server 14.04, and have both "auto wlan0" and "auto p4p1" in my /etc/network/interfaces file as I have both a wifi card and a network port (described here). I want the computer to use the wired connection, but fall back on the wifi if the network cable is not plugged in.
Currently, both connections are "on" whenever I boot up. How can I make wifi to not be on when a network cable is plugged in, and turned on when a network cable is unplugged? That is, I'd like to have the network connections be 'smart' like in Ubuntu desktop. Thanks!