PDA

View Full Version : The case of the disappearing /etc/hosts....



sibarys
09-15-2003, 03:33 PM
In trying to fix the network setup of my DSR7000, I modified the /etc/hosts file (one was already there but, obviously, not specific to my newtork setup), also modified /etc/resolv.conf (again, a generic one was already there) and created a new /etc/defaultrouter.

I had also created a new /.profile (mainly to modify my PS1).

Well, whenever I reboot the unit (since I'm still playing with the hacks I have had to do that), all these files are gone. Not just replaced by the generic ones, but really GONE.

How the heck is it being done (and why)? My root is /dev/hda7, should I also make a copy of these files on /dev/hda4? If yes, how do I get to /dev/hda4?

Not a biggie. Just another puzzle I'd like to solve.

Thanks,
Sibarys

mrblack51
09-15-2003, 03:49 PM
um, you didn't indicate which method for getting bash that you are using. I can pretty much tell that you are using bash_env, so of course modifying stuff in /etc will get removed, because of the initrd checks. when it sees the modified file, it removes it.