I'm trying to get an image to optionally use a static IP when it boots (i.e. 
static or dhcp depending on kernel command line parameters).

When a static allocation is being used, a script within the init of an 
initramfs edits /etc/network/interface to add a static entry for eth0 and to 
add an 'up' command to set the nameserver in /etc/resolv.conf (in the final 
rootfs) before switch_root is called.

Is there a better way to do this (I'm sure there is!)?

--

Chris Tapp
opensou...@keylevel.com
www.keylevel.com

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to