forked from Ivasoft/openwrt
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:
@@ -7,9 +7,8 @@ preinit_set_mac_address() {
|
||||
local mac
|
||||
|
||||
. /lib/functions.sh
|
||||
. /lib/mvebu.sh
|
||||
|
||||
case $(mvebu_board_name) in
|
||||
case $(board_name) in
|
||||
armada-xp-linksys-mamba)
|
||||
mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
|
||||
ifconfig eth0 hw ether $mac 2>/dev/null
|
||||
|
||||
@@ -6,9 +6,8 @@
|
||||
preinit_mount_syscfg() {
|
||||
|
||||
. /lib/functions.sh
|
||||
. /lib/mvebu.sh
|
||||
|
||||
case $(mvebu_board_name) in
|
||||
case $(board_name) in
|
||||
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-xp-linksys-mamba)
|
||||
needs_recovery=0
|
||||
syscfg_part=$(grep syscfg /proc/mtd |cut -c4)
|
||||
|
||||
Reference in New Issue
Block a user