aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/base-files/etc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-11-22 20:52:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-11-22 20:52:10 +0000
commit09031cc30fbeed468a1fb45b04cb70d0bf346559 (patch)
treec6cfc1bb6a461cfde8ca44bb9367e9ed012b8bf9 /target/linux/mvebu/base-files/etc
parentcb76498d8014ede409db5d215359edad14778cf2 (diff)
downloadmaster-187ad058-09031cc30fbeed468a1fb45b04cb70d0bf346559.tar.gz
master-187ad058-09031cc30fbeed468a1fb45b04cb70d0bf346559.tar.bz2
master-187ad058-09031cc30fbeed468a1fb45b04cb70d0bf346559.zip
Revert "mvebu: migrate led and network setup to board detection framework"
Roll back the mvebu conversion to board detection code as we need to fix some strcutural issues first. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47597 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mvebu/base-files/etc')
-rw-r--r--[-rwxr-xr-x]target/linux/mvebu/base-files/etc/uci-defaults/01_leds (renamed from target/linux/mvebu/base-files/etc/board.d/01_leds)8
-rw-r--r--[-rwxr-xr-x]target/linux/mvebu/base-files/etc/uci-defaults/02_network (renamed from target/linux/mvebu/base-files/etc/board.d/02_network)10
2 files changed, 9 insertions, 9 deletions
diff --git a/target/linux/mvebu/base-files/etc/board.d/01_leds b/target/linux/mvebu/base-files/etc/uci-defaults/01_leds
index eb245d85ae..612f949da4 100755..100644
--- a/target/linux/mvebu/base-files/etc/board.d/01_leds
+++ b/target/linux/mvebu/base-files/etc/uci-defaults/01_leds
@@ -1,13 +1,11 @@
#!/bin/sh
#
-# Copyright (C) 2014-2015 OpenWrt.org
+# Copyright (C) 2014 OpenWrt.org
#
-. /lib/functions/uci-defaults-new.sh
+. /lib/functions/uci-defaults.sh
. /lib/mvebu.sh
-board_config_update
-
board=$(mvebu_board_name)
case "$board" in
@@ -34,6 +32,6 @@ armada-xp-linksys-mamba)
esac
-board_config_flush
+ucidef_commit_leds
exit 0
diff --git a/target/linux/mvebu/base-files/etc/board.d/02_network b/target/linux/mvebu/base-files/etc/uci-defaults/02_network
index 803a4dc768..d1da59fb48 100755..100644
--- a/target/linux/mvebu/base-files/etc/board.d/02_network
+++ b/target/linux/mvebu/base-files/etc/uci-defaults/02_network
@@ -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