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>
Fri, 3 Apr 2020 15:59:56 +0000 (17:59 +0200)
commitb51ea43f900191bc8ce7411dad39239fac6df4f8
treeb34cb2711ba433e22c8a0072962e032b5515c3e4
parent3ec70052c5d82ffbc8d13e597f2833a1c30bec54
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>
target/linux/bcm53xx/base-files/etc/board.d/02_network