mpc85xx: migrate network setup to board detection framework
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 20 Nov 2015 23:52:31 +0000 (23:52 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 20 Nov 2015 23:52:31 +0000 (23:52 +0000)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47540 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/mpc85xx/base-files/etc/board.d/02_network [moved from target/linux/mpc85xx/base-files/etc/uci-defaults/02_network with 73% similarity, mode: 0755]

old mode 100644 (file)
new mode 100755 (executable)
similarity index 73%
rename from target/linux/mpc85xx/base-files/etc/uci-defaults/02_network
rename to target/linux/mpc85xx/base-files/etc/board.d/02_network
index 525a552..dff24c0
@@ -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