aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-05-24 16:45:06 +0200
committerRafał Miłecki <rafal@milecki.pl>2021-05-27 10:58:49 +0200
commit4b9a67362d70c544b85078b8d5c661f43f7472d9 (patch)
tree62551cfc23cac0cfe27183cc662ce9f65a1af400 /target/linux
parent553cc47ec75ee15ff51fde714a75403450bac730 (diff)
downloadupstream-4b9a67362d70c544b85078b8d5c661f43f7472d9.tar.gz
upstream-4b9a67362d70c544b85078b8d5c661f43f7472d9.tar.bz2
upstream-4b9a67362d70c544b85078b8d5c661f43f7472d9.zip
base-files: generate network config with "device" options
Replace "ifname" with "device" as netifd has been recently patches to used the later one. It's more clear and accurate. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/gemini/base-files/etc/board.d/02_network6
-rw-r--r--target/linux/realtek/base-files/etc/board.d/02_network2
2 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/gemini/base-files/etc/board.d/02_network b/target/linux/gemini/base-files/etc/board.d/02_network
index 58eb9ed40c..d6ee5cadfe 100644
--- a/target/linux/gemini/base-files/etc/board.d/02_network
+++ b/target/linux/gemini/base-files/etc/board.d/02_network
@@ -6,17 +6,17 @@ board_config_update
case "$(board_name)" in
dlink,dir-685)
# These are all connected to eth0 thru RTL8366RB
- ucidef_set_interface "eth" ifname "eth0" protocol "none"
+ ucidef_set_interface "eth" device "eth0" protocol "none"
ucidef_set_interfaces_lan_wan "lan0 lan1 lan2 lan3" "wan"
;;
itian,sq201)
# These are all connected to eth1 thru VSC7395
- ucidef_set_interface "eth" ifname "eth1" protocol "none"
+ ucidef_set_interface "eth" device "eth1" protocol "none"
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth0"
;;
storlink,gemini324)
# These are all connected to eth1 thru VSC7385
- ucidef_set_interface "eth" ifname "eth1" protocol "none"
+ ucidef_set_interface "eth" device "eth1" protocol "none"
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth0"
;;
esac
diff --git a/target/linux/realtek/base-files/etc/board.d/02_network b/target/linux/realtek/base-files/etc/board.d/02_network
index c1dd230bb8..6568017b52 100644
--- a/target/linux/realtek/base-files/etc/board.d/02_network
+++ b/target/linux/realtek/base-files/etc/board.d/02_network
@@ -23,7 +23,7 @@ for lan in /sys/class/net/lan*; do
done
ucidef_set_bridge_device switch
ucidef_set_interface_wan "$lan_list"
-ucidef_set_interface "lan" ifname "lan1:t" protocol "static" vlan 100
+ucidef_set_interface "lan" device "lan1:t" protocol "static" vlan 100
lan_mac=""
wan_mac=""