Hey, does anyone know of a way to learn the IP address that was received from the DHCP server? I'm wondering about this. Piping the output of ifconfig through grep and then through cut I know would work, but it seems like a very clumsy method of learning that eth0 was assigned 192.168.0.16, for example. Is there a better way? I'd think there would be, but I can't think of one.
This is only at the shell level, so it's not like I can query the kernel directly. Now files from /proc or /sys are, of course, acceptable targets. :) I don't know those directories well enough to even begin to guess where such a file may be. Thanks! /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
