ar71xx: migrate led and network setup to board detection framework
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47534
This commit is contained in:
parent
4afee42560
commit
ade2c06d61
2 changed files with 11 additions and 10 deletions
8
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds → target/linux/ar71xx/base-files/etc/board.d/01_leds
Normal file → Executable file
8
target/linux/ar71xx/base-files/etc/uci-defaults/01_leds → target/linux/ar71xx/base-files/etc/board.d/01_leds
Normal file → Executable file
|
@ -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
|
13
target/linux/ar71xx/base-files/etc/uci-defaults/02_network → target/linux/ar71xx/base-files/etc/board.d/02_network
Normal file → Executable file
13
target/linux/ar71xx/base-files/etc/uci-defaults/02_network → target/linux/ar71xx/base-files/etc/board.d/02_network
Normal file → Executable file
|
@ -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
|
Loading…
Reference in a new issue