diff options
author | Roman Yeryomin <roman@advem.lv> | 2018-05-04 18:42:36 +0300 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-05-24 09:39:47 +0200 |
commit | 85048a9c1fa4d37b5896d9237d28bbadbbe09d19 (patch) | |
tree | 6a92426a48aae15c2f1a938ff87f6560bd373bd1 /target | |
parent | 467b07e00c5ead98848587b8e06db61f7b33d3a8 (diff) | |
download | upstream-85048a9c1fa4d37b5896d9237d28bbadbbe09d19.tar.gz upstream-85048a9c1fa4d37b5896d9237d28bbadbbe09d19.tar.bz2 upstream-85048a9c1fa4d37b5896d9237d28bbadbbe09d19.zip |
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>
Diffstat (limited to 'target')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/board.d/02_network | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index 547e2e04d2..1d27ab0bfe 100755 --- a/target/linux/ar71xx/base-files/etc/board.d/02_network +++ b/target/linux/ar71xx/base-files/etc/board.d/02_network @@ -402,7 +402,7 @@ ar71xx_setup_interfaces() "0@eth0" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan" ;; ew-balin) - ucidef_set_interface_raw "usb2" "usb0" "static" + ucidef_set_interface "usb2" ifname "usb0" proto "static" ucidef_add_switch "switch0" \ "0@eth0" "5:lan:4" "4:lan:5" "3:wan" ;; @@ -469,7 +469,7 @@ ar71xx_setup_interfaces() ;; tellstick-znet-lite) ucidef_set_interface_wan "eth0" - ucidef_set_interface_raw "wlan" "wlan0" "dhcp" + ucidef_set_interface "wlan" ifname "wlan0" proto "dhcp" ;; tl-mr3420-v2|\ tl-wr841n-v8|\ @@ -500,7 +500,7 @@ ar71xx_setup_interfaces() ;; tl-wr841n-v1|\ tl-wr941nd) - ucidef_set_interface_raw "eth" "eth0" + ucidef_set_interface "eth" ifname "eth0" ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan" ;; tl-wr741nd|\ |