Hello Alberto,

Two comments:
1. Your patch breaks alphabetical order.
2. If you look more deeply into the file, you will easily find there
other boards with exactly the same configuration: asl26555 and re6500.
Please, don't add unnecessary code and use what's already there.

Cheers,
Piotr

2015-10-28 19:07 GMT+01:00 Alberto Mattea <[email protected]>:
> This patch adds a case for the Asus RP-N53 in the "02_network" boot script. 
> Without this, the lan interface does not get configured on startup, 
> effectively bricking the device.
>
> Signed-off-by:  Alberto Mattea <[email protected]>
> ---
> diff -uN a/target/linux/ramips/base-files/etc/board.d/02_network 
> b/target/linux/ramips/base-files/etc/board.d/02_network
>
> --- a/target/linux/ramips/base-files/etc/board.d/02_network     2015-10-28 
> 18:45:05.993476654 +0100
> +++ b/target/linux/ramips/base-files/etc/board.d/02_network     2015-10-28 
> 18:47:02.505480181 +0100
> @@ -127,6 +127,11 @@
>                 ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t"
>                 ucidef_add_switch_vlan "switch0" "2" "0 6t"
>                 ;;
> +       rp-n53)
> +               ucidef_set_interface_lan "eth0.1"
> +               ucidef_add_switch "switch0" "1" "1"
> +               ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t"
> +               ;;
>         awapn2403)
>                 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
>                 ucidef_add_switch "switch0" "1" "1"
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to