Revert "mvebu: migrate led and network setup to board detection framework"
[openwrt-github/.git] / target / linux / mvebu / base-files / etc / uci-defaults / 02_network
old mode 100755 (executable)
new mode 100644 (file)
similarity index 86%
rename from target/linux/mvebu/base-files/etc/board.d/02_network
rename to target/linux/mvebu/base-files/etc/uci-defaults/02_network
index 803a4dc..d1da59f
@@ -3,10 +3,12 @@
 # Copyright (C) 2014-2015 OpenWrt.org
 #
 
-. /lib/functions/uci-defaults-new.sh
-. /lib/mvebu.sh
+[ -e /etc/config/network ] && exit 0
+
+touch /etc/config/network
 
-board_config_update
+. /lib/functions/uci-defaults.sh
+. /lib/mvebu.sh
 
 ucidef_set_interface_loopback
 
@@ -39,6 +41,6 @@ armada-xp-gp)
        ;;
 esac
 
-board_config_flush
+uci commit network
 
 exit 0