aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-11-20 22:14:36 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-11-20 22:14:36 +0000
commit1fc6aafa93bc97410917a49c66070617028c39fe (patch)
tree509a8799501edc5078f15e174293475ac817ba12 /target
parentfd99f0f03fdee3fa0877be73740cb3a0e47f2070 (diff)
downloadmaster-187ad058-1fc6aafa93bc97410917a49c66070617028c39fe.tar.gz
master-187ad058-1fc6aafa93bc97410917a49c66070617028c39fe.tar.bz2
master-187ad058-1fc6aafa93bc97410917a49c66070617028c39fe.zip
ar71xx: migrate led and network setup to board detection framework
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47534 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-x[-rw-r--r--]target/linux/ar71xx/base-files/etc/board.d/01_leds (renamed from target/linux/ar71xx/base-files/etc/uci-defaults/01_leds)8
-rwxr-xr-x[-rw-r--r--]target/linux/ar71xx/base-files/etc/board.d/02_network (renamed from target/linux/ar71xx/base-files/etc/uci-defaults/02_network)13
2 files changed, 11 insertions, 10 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index 39f472a5bb..952e7b88d5 100644..100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -1,11 +1,13 @@
#!/bin/sh
#
-# Copyright (C) 2011 OpenWrt.org
+# Copyright (C) 2011-2015 OpenWrt.org
#
-. /lib/functions/uci-defaults.sh
+. /lib/functions/uci-defaults-new.sh
. /lib/ar71xx.sh
+board_config_update
+
board=$(ar71xx_board_name)
case "$board" in
@@ -651,6 +653,6 @@ zcn-1523h-5)
;;
esac
-ucidef_commit_leds
+board_config_flush
exit 0
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 2765adb112..fffe06b7a0 100644..100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -1,19 +1,18 @@
#!/bin/sh
#
-# Copyright (C) 2011 OpenWrt.org
+# Copyright (C) 2011-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/ar71xx.sh
+board_config_update
+
ucidef_set_interface_loopback
board=$(ar71xx_board_name)
+
case "$board" in
all0315n |\
all0258n |\
@@ -527,6 +526,6 @@ wndr3700)
;;
esac
-uci commit network
+board_config_flush
exit 0