Right on, thanks!
Now I've got 3 or 4 different ways of doing it... lol

It's a little script that runs:

awk '/Serial/ {print $3}' /proc/cpuinfo > /etc/hostname

Now how do I get it to set the hostname immediately to /etc/hostname?

This is all pretty simple stuff, but it seems to allude me today...

Thanks again

Ryan



On 9/28/07, Craig Hughes <craig@gumstix.com> wrote:
On Sep 28, 2007, at 12:07 PM, Heilpern, Mark wrote:

awk '/Serial/ {print $3}' /proc/cpuinfo

Mark wins.  I always forget awk can do the pattern matching itself ;)

C

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users