Hi,

On 02/07/2016 17:00, Mathias Kresin wrote:
> Signed-off-by: Mathias Kresin <d...@kresin.me>
> ---
>  target/linux/lantiq/base-files/etc/board.d/02_network | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network 
> b/target/linux/lantiq/base-files/etc/board.d/02_network
> index c271e62..3bb4e6e 100755
> --- a/target/linux/lantiq/base-files/etc/board.d/02_network
> +++ b/target/linux/lantiq/base-files/etc/board.d/02_network
> @@ -163,7 +163,7 @@ WBMR300)
>  esac
>  
>  if [ -n "$(ls /lib/modules/`uname -r`/ltq_atm*)" ]; then
> -     ucidef_add_atm_bridge "$vpi" "$vci" "$encaps" "$payload"
> +     ucidef_add_atm_bridge "$vpi" "$vci" "$encaps" "$payload" "$wan_mac"
>  fi
>  
>  if grep -qE "system type.*: (VR9|xRX200)" /proc/cpuinfo; then
> @@ -177,7 +177,7 @@ fi
>  ucidef_set_interface_wan "$interface_wan" "pppoe"
>  
>  [ -n "$lan_mac" ] && ucidef_set_interface_macaddr lan "$lan_mac"
> -[ -n "$wan_mac" ] && ucidef_set_interface_macaddr wan "$wan_mac"
> +[ -n "$wan_mac" ] && [ "$interface_wan" != "nas0" ] && 
> ucidef_set_interface_macaddr wan "$wan_mac"
>  

this is a bit quirky and will break devices that can support atm/ptm or
that have 2 atm interfaces. is there no better way to detect if this is
a atm bridge ?

        John

_______________________________________________
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev

Reply via email to