On Tuesday 24 January 2006 1:00 pm, "John Jordan" <[EMAIL PROTECTED]> 
wrote:
> OK, doing it with the -f at the end works.

Err, no.  Putting the "-f" at the end of the command line creates a link 
with a filename of "-f"!  (Sorry.)

Except for one or two rare exceptions, options must always come right after 
the command name itself.  So the correct command line would be:

        ln -f /etc/resolve.conf /chroot/.../etc/resolv.conf

----- Concerning have this process automated -----

I'm not running Ubuntu (or any Debian distribution), so I can't help with 
the specifics.  But on my SUSE 10.0 laptop, there are network configuration 
files under /etc/sysconfig/network, one for each interface.  Because of the 
way the scripts are written, I can create a subdirectory there by the name 
"ifservices-IFNAME" (using "eth0" or "wlan0" for the IFNAME) and the 
scripts inside there are executed when the interface changes state.  This 
is perfect for what you want to do.

Create a script with one line:
        cp /etc/resolv.conf /chroot/.../resolv.conf
and put the script into the above directory.  Name it anything you want.  
The script will be executed whenever the interface starts or stops (and at 
other times), but copying the file will never hurt, so this works...

Note that this is executed when the interface is manipulated on the 64-bit 
side of the house, which is exactly when you want it run.

HTH.
-- 
Frank J. Edwards
Edwards & Edwards Consulting, LLC
Voice: (813) 996-7954
Email: [EMAIL PROTECTED]
Large Attachments To: [EMAIL PROTECTED]

Attachment: pgpBMADx6rqt2.pgp
Description: PGP signature

_______________________________________________
LinuxR3000 mailing list
[email protected]
http://lists.pcxperience.com/cgi-bin/mailman/listinfo/linuxr3000
Wiki at http://prinsig.se/weekee/

Reply via email to