treewide: use the generic board_name function
Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin <dev@kresin.me>
This commit is contained in:
@@ -4,11 +4,10 @@
|
||||
#
|
||||
|
||||
. /lib/functions/uci-defaults.sh
|
||||
. /lib/brcm63xx.sh
|
||||
|
||||
board_config_update
|
||||
|
||||
case "$(brcm63xx_board_name)" in
|
||||
case "$(board_name)" in
|
||||
a4001n1)
|
||||
ucidef_set_led_netdev "lan" "LAN" "A4001N1:green:eth" "eth0"
|
||||
ucidef_set_led_usbdev "usb" "USB" "A4001N1:green:3g" "1-1"
|
||||
|
||||
@@ -4,11 +4,10 @@
|
||||
#
|
||||
|
||||
. /lib/functions/uci-defaults.sh
|
||||
. /lib/brcm63xx.sh
|
||||
|
||||
board_config_update
|
||||
|
||||
case "$(brcm63xx_board_name)" in
|
||||
case "$(board_name)" in
|
||||
|
||||
cvg834g |\
|
||||
evg2000 |\
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 2007-2013 OpenWrt.org
|
||||
|
||||
. /lib/functions.sh
|
||||
. /lib/functions/leds.sh
|
||||
. /lib/brcm63xx.sh
|
||||
|
||||
set_state() {
|
||||
case "$(brcm63xx_board_name)" in
|
||||
case "$(board_name)" in
|
||||
a4001n1)
|
||||
status_led="A4001N1:green:power"
|
||||
;;
|
||||
|
||||
@@ -12,8 +12,6 @@ rt2x00_eeprom_extract() {
|
||||
local count=$3
|
||||
local mtd
|
||||
|
||||
. /lib/functions.sh
|
||||
|
||||
mtd=$(find_mtd_part $part)
|
||||
[ -n "$mtd" ] || \
|
||||
rt2x00_eeprom_die "no mtd device found for partition $part"
|
||||
@@ -24,9 +22,9 @@ rt2x00_eeprom_extract() {
|
||||
|
||||
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
||||
|
||||
. /lib/brcm63xx.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
board=$(brcm63xx_board_name)
|
||||
board=$(board_name)
|
||||
|
||||
case "$FIRMWARE" in
|
||||
"rt2x00.eeprom" )
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
#
|
||||
#
|
||||
|
||||
. /lib/brcm63xx.sh
|
||||
. /lib/functions.sh
|
||||
|
||||
do_fixcrc() {
|
||||
mtd fixtrx linux
|
||||
}
|
||||
|
||||
case "$(brcm63xx_board_name)" in
|
||||
case "$(board_name)" in
|
||||
a4001n |\
|
||||
a4001n1 |\
|
||||
ar-5381u |\
|
||||
|
||||
Reference in New Issue
Block a user