malta: add default network configuration
authorJohn Crispin <john@openwrt.org>
Sun, 31 May 2015 17:45:43 +0000 (17:45 +0000)
committerJohn Crispin <john@openwrt.org>
Sun, 31 May 2015 17:45:43 +0000 (17:45 +0000)
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

target/linux/malta/base-files/etc/uci-defaults/02-network [new file with mode: 0644]

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 (file)
index 0000000..e90ecbe
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. /lib/functions/uci-defaults.sh
+
+ucidef_set_interface_loopback
+ucidef_set_interface_raw "lan" "eth0" "dhcp"