I am running fc5 on my laptop with a Orinoco card using the madwifif drivers. I have a bunch of commands I run to be hooked up to my AP. Sometimes however, I am hardwired into my LAN. I would like to make a bash script that looks to see if eth0 is active or has an IP address if not, then run the neccessary wireless commands.
What is the best way to acheive the eth0 portion of the script?
Thanks in advance.