base-files: rework _ucidef_set_interface to be more generic
authorRoman Yeryomin <roman@advem.lv>
Fri, 4 May 2018 15:42:36 +0000 (18:42 +0300)
committerJohn Crispin <john@phrozen.org>
Thu, 24 May 2018 07:39:47 +0000 (09:39 +0200)
commit85048a9c1fa4d37b5896d9237d28bbadbbe09d19
tree6a92426a48aae15c2f1a938ff87f6560bd373bd1
parent467b07e00c5ead98848587b8e06db61f7b33d3a8
base-files: rework _ucidef_set_interface to be more generic

This is a rework of previously submitted patch reworking
ucidef_set_interface_raw [1]. Here, keep the idea but instead
make _ucidef_set_interface more generic and use it instead of
ucidef_set_interface_raw.
Also change the users like ucidef_set_interface_lan and others.

[1] https://patchwork.ozlabs.org/patch/844961/

Signed-off-by: Roman Yeryomin <roman@advem.lv>
package/base-files/files/lib/functions/uci-defaults.sh
target/linux/ar71xx/base-files/etc/board.d/02_network