okay a quick update. I have figured out from reading for hours on hours that in a root shell, the command:

ifconfig eth0 | grep HWaddr | awk '{print $5}' | sed s/://g

will return my MAC address removing the colons. This would work perfetly. So I edited the hostname.sh to read:

[ -f /etc/hostname ] && HOSTNAME="$(ifconfig eth0 | grep HWaddr | awk '{print $5}' | sed s/://g)"

and when I execute that script, I get the error awk command not found. What am I missing. If I remove everything after the grep HWaddr, it works fine, it just returns: eth0 Link encap:ethernet 00:B0:45:09:C1:B2.

SOMEONE PLEASE HELP. I can't afford to lose the hair I have left...

Brandon