Revert "ar71xx: migrate led and network setup to board detection framework"

The board detect code needs more fixes in order to work properly.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47641
This commit is contained in:
Jo-Philipp Wich 2015-11-25 11:53:59 +00:00
parent 7b4acdeff6
commit 3fac6dde85
2 changed files with 10 additions and 11 deletions

View File

@ -1,13 +1,11 @@
#!/bin/sh #!/bin/sh
# #
# Copyright (C) 2011-2015 OpenWrt.org # Copyright (C) 2011 OpenWrt.org
# #
. /lib/functions/uci-defaults-new.sh . /lib/functions/uci-defaults.sh
. /lib/ar71xx.sh . /lib/ar71xx.sh
board_config_update
board=$(ar71xx_board_name) board=$(ar71xx_board_name)
case "$board" in case "$board" in
@ -669,6 +667,6 @@ zcn-1523h-5)
;; ;;
esac esac
board_config_flush ucidef_commit_leds
exit 0 exit 0

View File

@ -1,18 +1,19 @@
#!/bin/sh #!/bin/sh
# #
# Copyright (C) 2011-2015 OpenWrt.org # Copyright (C) 2011 OpenWrt.org
# #
. /lib/functions/uci-defaults-new.sh [ -e /etc/config/network ] && exit 0
. /lib/ar71xx.sh
board_config_update touch /etc/config/network
. /lib/functions/uci-defaults.sh
. /lib/ar71xx.sh
ucidef_set_interface_loopback ucidef_set_interface_loopback
board=$(ar71xx_board_name) board=$(ar71xx_board_name)
case "$board" in case "$board" in
all0315n |\ all0315n |\
all0258n |\ all0258n |\
@ -536,6 +537,6 @@ wndr3700)
;; ;;
esac esac
board_config_flush uci commit network
exit 0 exit 0