Billy wrote:
> Yes, I was reading about that somewhere.
> So I stop the nwam service, edit the llp file and add
> yukon0 static 192.168.1.10/24
> Then start the nwam service again
> And everything is fine
> My box has the ip I want.
>
> But I got no internet access...
>
> [I'm getting too frustrated with this and that, and sometimes I swear for 
> swaping openfiler for opensolaris when all I want is a nice NAS but with a 
> usable/understandable gui]
>   
This may be a hack, but I put two small scripts (S20host_insurance and 
K20host_insurance) into /etc/rc2.d directory so I write my hosts file 
coming and going:

#! /bin/sh
# this script sets and insures hosts file is not klobered by DHCP
cp /etc/hosts.bkp /etc/hosts


In the file /etc/hosts.bkp I set my address (basically as I want it for 
manual operation).  I found my Laptop went crazy when I booted it and it 
failed to connect to an address, my hostname was set to unknown and had 
no address associated with is, so gnome (mayb cde?) thought it was the 
first time I'm logging in and asks for my default window manager.  The 
easiest was for my script at rc2.d, if NWAM finds a WIFI it operates 
properly, if it finds no WIFI, my hosts file is intact.

Works for me

Paul

Reply via email to