aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorSungbo Eo <mans0n@gorani.run>2020-05-29 20:51:01 +0900
committerPetr Štetiar <ynezz@true.cz>2020-07-09 10:28:40 +0200
commit923792369e2befc2ebda6bbadc3e9a3c314e2c25 (patch)
tree9cb45ba93f36e9184c38725940709bd53087bd32 /target/linux
parentc7b750e7ac833c1627d4fbe69b7cf43c6ff87f7c (diff)
downloadupstream-923792369e2befc2ebda6bbadc3e9a3c314e2c25.tar.gz
upstream-923792369e2befc2ebda6bbadc3e9a3c314e2c25.tar.bz2
upstream-923792369e2befc2ebda6bbadc3e9a3c314e2c25.zip
mediatek: do not create device nodes in uci-defaults script
Since commit 298814e6be76 ("base-files: config_generate: split macaddr with multiple ifaces") uci MAC address setup will create a device node for each member iface. But this script might override the device nodes and interfere with the MAC address setup. Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/mediatek/base-files/etc/uci-defaults/99-net-ps21
1 files changed, 5 insertions, 16 deletions
diff --git a/target/linux/mediatek/base-files/etc/uci-defaults/99-net-ps b/target/linux/mediatek/base-files/etc/uci-defaults/99-net-ps
index 596b33c5b4..15e9ef32a3 100755
--- a/target/linux/mediatek/base-files/etc/uci-defaults/99-net-ps
+++ b/target/linux/mediatek/base-files/etc/uci-defaults/99-net-ps
@@ -1,16 +1,5 @@
-uci set network.globals='globals'
-uci set network.globals.packet_steering=1
-uci set network.eth0=device
-uci set network.eth0.name=eth0
-uci set network.lan0=device
-uci set network.lan0.name=lan0
-uci set network.lan1=device
-uci set network.lan1.name=lan1
-uci set network.lan2=device
-uci set network.lan2.name=lan2
-uci set network.lan3=device
-uci set network.lan3.name=lan3
-
-uci commit network
-
-exit 0
+uci -q get network.globals.packet_steering >/dev/null || {
+ uci set network.globals='globals'
+ uci set network.globals.packet_steering=1
+ uci commit network
+}