summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-05-31 17:45:43 +0000
committerJohn Crispin <john@openwrt.org>2015-05-31 17:45:43 +0000
commit6938dac23b40bdcd97c4f604b0024c4e2cc0d13e (patch)
tree7cd9387b9dedf4dc1c49591661df3008b0ca8041 /target/linux
parentfa2dfdb74ba62b779c3be496cb088c7f02d99878 (diff)
downloadmtk-20170518-6938dac23b40bdcd97c4f604b0024c4e2cc0d13e.zip
mtk-20170518-6938dac23b40bdcd97c4f604b0024c4e2cc0d13e.tar.gz
mtk-20170518-6938dac23b40bdcd97c4f604b0024c4e2cc0d13e.tar.bz2
malta: add default network configuration
I didn't figure out how to achieve this using uci-defaults-new.sh, so use old-school uci-defaults script as that's what is used on realview as well. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 45857
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/malta/base-files/etc/uci-defaults/02-network6
1 files changed, 6 insertions, 0 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
new file mode 100644
index 0000000..e90ecbe
--- /dev/null
+++ b/target/linux/malta/base-files/etc/uci-defaults/02-network
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. /lib/functions/uci-defaults.sh
+
+ucidef_set_interface_loopback
+ucidef_set_interface_raw "lan" "eth0" "dhcp"