Perhaps this is useful to somebody other than me? It'll tell you what your currently "active" IP address is - ie. if you're connected via both wireless and wired connections, it'll tell you which one'll win for default network traffic.
#! /bin/bash ifconfig $(netstat -rn | awk '/^default/ {print $NF}' | head -1)\ | grep 'inet ' | awk '{print $2}'
09:24 · comments (1)
Archives
...the last 3 months :
Recent Posts
Posts Recently Commented Upon
Other Recent Listening
Hair
sorta dark red with one blond bit.Wasting Time On
Links
Help Save The World
I may not (so far) run the kind of blog that posts social conscience linkage - other friends seem to have it covered better than I could manage (yes, I'm aware that's no excuse), but this doesn't mean that I don't care about the State of ThingsTM.
i donate to :
but there's other things worth worrying about too, like :
Looking For Something ?
Feed ?
yes indeed - a merged feed of my flickr photos, del.icio.us tags and posts here:
Licensing
This weblog is licensed under a Creative Commons License.
Leave a comment