bcm53xx: refactor board.d code in 02_network
authorRafał Miłecki <rafal@milecki.pl>
Fri, 3 Apr 2020 13:55:01 +0000 (15:55 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 7 Apr 2020 13:50:29 +0000 (15:50 +0200)
commitab3549a870ed8dcc78fffd130971d081ea3d08f0
tree95c5c40313b5baa5e72c1d66513f482bdc622c32
parent35413b047c2c2d2229165ef021a4ef801ca16eb8
bcm53xx: refactor board.d code in 02_network

1. Use functions for cleaner code
2. Always execute WAN interface generic code

Before this change WAN interface code wasn't executed on all devices due
to an early "exit 0".

Acked-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit b51ea43f900191bc8ce7411dad39239fac6df4f8)
target/linux/bcm53xx/base-files/etc/board.d/02_network