[OpenWrt-Devel] [PATCH] malta: add default network configuration

Daniel Golle daniel at makrotopia.org
Sun May 31 01:44:20 EDT 2015


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 at makrotopia.org>
---
 target/linux/malta/base-files/etc/uci-defaults/02-network | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 target/linux/malta/base-files/etc/uci-defaults/02-network

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"
-- 
2.4.2
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list