[yocto] Configuring static/dhcp IP at boot time
Chris Tapp
opensource at keylevel.com
Wed Jan 28 01:07:15 PST 2015
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
opensource at keylevel.com
www.keylevel.com
More information about the yocto
mailing list