<br><br>On Wednesday, 30 December 2015, Nathan Hintz <<a href="mailto:nlhintz@hotmail.com">nlhintz@hotmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi:<br>
On Dec 30, 2015 4:01 AM, Yousong Zhou <<a href="javascript:_e(%7B%7D,'cvml','yszhou4tech@gmail.com');" target="_blank">yszhou4tech@gmail.com</a>> wrote:<br>
><br>
> With the default /e/c/network present, board_detect won't create a new<br>
> config from board.json.  Move this default configuration to<br>
> generate_static_network of config_generate instead.<br>
><br>
> This should fix the issue on malta target and should not affect other<br>
> targets that provide its own default network config<br>
><br>
> Signed-off-by: Yousong Zhou <<a href="javascript:_e(%7B%7D,'cvml','yszhou4tech@gmail.com');" target="_blank">yszhou4tech@gmail.com</a>><br>
> ---<br>
>  package/base-files/files/bin/config_generate |  8 ++++++++<br>
>  package/base-files/files/etc/config/network  | 18 ------------------<br>
>  2 files changed, 8 insertions(+), 18 deletions(-)<br>
>  delete mode 100644 package/base-files/files/etc/config/network<br>
><br>
> diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate<br>
> index 9218788..39a0c60 100755<br>
> --- a/package/base-files/files/bin/config_generate<br>
> +++ b/package/base-files/files/bin/config_generate<br>
> @@ -14,6 +14,14 @@ generate_static_network() {<br>
>                  set network.loopback.proto='static'<br>
>                  set network.loopback.ipaddr='127.0.0.1'<br>
>                  set network.loopback.netmask='255.0.0.0'<br>
> +               delete network.lan<br>
> +               network.lan=interface</p>
<p dir="ltr">Should the syntax of these be "set network.lan..."?</p></blockquote><div><br></div><div>Indeed~  Thanks for the review.</div><div><br></div><div>                yousong</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">> +               network.lan.type='bridge'<br>
> +               network.lan.ifname='eth1'<br>
> +               network.lan.proto='static'<br>
> +               network.lan.ipaddr='192.168.1.1'<br>
> +               network.lan.netmask='255.255.255.0'<br>
> +               network.lan.ip6assign='60'<br>
>                  delete network.globals<br>
>                  set network.globals='globals'<br>
>                  set network.globals.ula_prefix='auto'<br>
> diff --git a/package/base-files/files/etc/config/network b/package/base-files/files/etc/config/network<br>
> deleted file mode 100644<br>
> index d3cd3c6..0000000<br>
> --- a/package/base-files/files/etc/config/network<br>
> +++ /dev/null<br>
> @@ -1,18 +0,0 @@<br>
> -# Copyright (C) 2006 OpenWrt.org<br>
> -<br>
> -config interface loopback<br>
> -       option ifname   lo<br>
> -       option proto    static<br>
> -       option ipaddr   127.0.0.1<br>
> -       option netmask  255.0.0.0<br>
> -<br>
> -config interface lan<br>
> -       option ifname   eth0<br>
> -       option type      bridge<br>
> -       option proto    static<br>
> -       option ipaddr   192.168.1.1<br>
> -       option netmask  255.255.255.0<br>
> -       option ip6assign 60<br>
> -<br>
> -config globals globals<br>
> -       option ula_prefix auto<br>
> -- <br>
> 2.6.3<br>
> _______________________________________________<br>
> openwrt-devel mailing list<br>
> <a href="javascript:_e(%7B%7D,'cvml','openwrt-devel@lists.openwrt.org');" target="_blank">openwrt-devel@lists.openwrt.org</a><br>
> <a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
</p>
</blockquote><br><br>-- <br>                yousong<br>