summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e90ecbe..7b3e225 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