summaryrefslogtreecommitdiff
path: root/target/linux/mpc85xx
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-11-20 23:52:31 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-11-20 23:52:31 +0000
commit8e79f25991cfc6d06f7cba7333693401f2d813de (patch)
treeee379294b6c1743e62895b05ed90dc9d89c719d4 /target/linux/mpc85xx
parent53d94f89e86ef262c9f76fa2aba93ffae9995717 (diff)
downloadmtk-20170518-8e79f25991cfc6d06f7cba7333693401f2d813de.zip
mtk-20170518-8e79f25991cfc6d06f7cba7333693401f2d813de.tar.gz
mtk-20170518-8e79f25991cfc6d06f7cba7333693401f2d813de.tar.bz2
mpc85xx: migrate network setup to board detection framework
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47540
Diffstat (limited to 'target/linux/mpc85xx')
-rwxr-xr-x[-rw-r--r--]target/linux/mpc85xx/base-files/etc/board.d/02_network (renamed from target/linux/mpc85xx/base-files/etc/uci-defaults/02_network)12
1 files changed, 5 insertions, 7 deletions
diff --git a/target/linux/mpc85xx/base-files/etc/uci-defaults/02_network b/target/linux/mpc85xx/base-files/etc/board.d/02_network
index 525a552..dff24c0 100644..100755
--- a/target/linux/mpc85xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/mpc85xx/base-files/etc/board.d/02_network
@@ -1,15 +1,13 @@
#!/bin/sh
-# Copyright (C) 2014 OpenWrt.org
+# Copyright (C) 2014-2015 OpenWrt.org
-[ -e /etc/config/network ] && exit 0
-
-touch /etc/config/network
-
-. /lib/functions/uci-defaults.sh
+. /lib/functions/uci-defaults-new.sh
. /lib/mpc85xx.sh
. /lib/functions.sh
. /lib/functions/system.sh
+board_config_update
+
ucidef_set_interface_loopback
board=$(mpc85xx_board_name)
@@ -26,6 +24,6 @@ tl-wdr4900-v1)
;;
esac
-uci commit network
+board_config_flush
exit 0