aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/malta/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/malta/base-files')
-rw-r--r--target/linux/malta/base-files/etc/uci-defaults/02-network5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/malta/base-files/etc/uci-defaults/02-network b/target/linux/malta/base-files/etc/uci-defaults/02-network
index e90ecbe6b2..7b3e22540e 100644
--- a/target/linux/malta/base-files/etc/uci-defaults/02-network
+++ b/target/linux/malta/base-files/etc/uci-defaults/02-network
@@ -3,4 +3,7 @@
. /lib/functions/uci-defaults.sh
ucidef_set_interface_loopback
-ucidef_set_interface_raw "lan" "eth0" "dhcp"
+ucidef_set_interface_wan "eth0"
+if [ -d "/sys/class/net/eth1" ]; then
+ ucidef_set_interface_lan "eth1"
+fi