mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Use the actual HW platform for generating QoS config.
We need to use 'brcm_fw_tool' instead of /proc/cpuinfo to check the hardware platform. The /proc/cpuinfo API is not stable. It only works as expected for BCM96846.
This commit is contained in:
parent
2778420bcd
commit
ecba6c9067
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
. /lib/functions.sh
|
. /lib/functions.sh
|
||||||
|
|
||||||
ethwan="$(db -q get hw.board.ethernetWanPort)"
|
ethwan="$(db -q get hw.board.ethernetWanPort)"
|
||||||
cpu_model="$(grep Hardware /proc/cpuinfo | awk '{print$NF}')"
|
cpu_model="$(brcm_fw_tool -k info)"
|
||||||
|
|
||||||
generate_queue(){
|
generate_queue(){
|
||||||
section="$1"
|
section="$1"
|
||||||
|
|
@ -19,7 +19,7 @@ generate_queue(){
|
||||||
|
|
||||||
if [ $is_lan -eq 1 ]; then
|
if [ $is_lan -eq 1 ]; then
|
||||||
case $cpu_model in
|
case $cpu_model in
|
||||||
BCM968*) no_of_q="0 1 2 3" ;;
|
68*) no_of_q="0 1 2 3" ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue