Skip to content
Snippets Groups Projects
Commit 951cd1cc authored by Tian Yang's avatar Tian Yang
Browse files

rstp: Get board_name using cat command.


get the board_name using cat /tmp/sysinfo/board_name instead of
reading from /lib/ipq806x.sh file which is removed.

Change-Id: I488ea7fb7d8f4b4d7735959b3f56d73d47bb0e83
Signed-off-by: default avatarTian Yang <tiany@codeaurora.org>
#!/bin/sh
# Copyright (c) 2013, 2017, 2019 The Linux Foundation. All rights reserved.
# Copyright (c) 2013, 2017, 2019, 2020 The Linux Foundation. All rights reserved.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
......@@ -25,8 +25,7 @@ get_atheros_header_type(){
}
get_cpu_mirror_port(){
. /lib/ipq806x.sh
board=$(ipq806x_board_name)
board=$(cat /tmp/sysinfo/board_name)
case "$board" in
ap-dk*)
......@@ -45,8 +44,7 @@ get_cpu_mirror_port(){
}
get_switch_config_auto(){
. /lib/ipq806x.sh
board=$(ipq806x_board_name)
board=$(cat /tmp/sysinfo/board_name)
case "$board" in
ap13*|ap143|ap147|ap15*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment