[oe] [RFC][PATCH] netbase: don't start udhcpc if kernel assigned IP statically

Koen Kooi k.kooi at student.utwente.nl
Mon Sep 21 20:46:22 UTC 2009


On 21-09-09 18:07, Denys Dmytriyenko wrote:
>
> Signed-off-by: Denys Dmytriyenko<denis at denix.org>

Acked-by: Koen Kooi <koen at openembedded.org>


> ---
>   recipes/netbase/netbase/interfaces |    2 ++
>   1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/recipes/netbase/netbase/interfaces b/recipes/netbase/netbase/interfaces
> index c615642..bae03dd 100644
> --- a/recipes/netbase/netbase/interfaces
> +++ b/recipes/netbase/netbase/interfaces
> @@ -52,6 +52,8 @@ iface atml0 inet dhcp
>   # Wired or wireless interfaces
>   auto eth0
>   iface eth0 inet dhcp
> +        pre-up /bin/grep -v -e "ip=[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /proc/cmdline>  /dev/null
> +
>   iface eth1 inet dhcp
>
>   # Ethernet/RNDIS gadget (g_ether)






More information about the Openembedded-devel mailing list