developer | 02f89f7 | 2023-02-02 15:26:12 +0800 | [diff] [blame] | 1 | diff --git a/smp-mt76.sh b/smp-mt76.sh |
| 2 | index b71c90a..d43ebe8 100755 |
| 3 | --- a/smp-mt76.sh |
| 4 | +++ b/smp-mt76.sh |
| 5 | @@ -5,7 +5,8 @@ CPU_LIST=`cat /proc/interrupts | sed -n '1p'` |
| 6 | NUM_OF_CPU=0; for i in $CPU_LIST; do NUM_OF_CPU=`expr $NUM_OF_CPU + 1`; done; |
| 7 | DEFAULT_RPS=0 |
| 8 | |
| 9 | -. /lib/functions.sh |
| 10 | +#. /lib/functions.sh |
| 11 | +board_name=`cat /proc/device-tree/model` |
| 12 | |
| 13 | RPS_IF_LIST="" |
| 14 | NUM_WIFI_CARD=0 |
| 15 | @@ -22,9 +23,9 @@ get_if_info() |
| 16 | NET_IF_LIST=`ls /sys/class/net` |
| 17 | for vif in $NET_IF_LIST; |
| 18 | do |
| 19 | - if [[ "$vif" == "eth"* ]] || \ |
| 20 | + if [[ "$vif" == "eth"* ]] || [[ "$vif" == "erouter"* ]] || \ |
| 21 | [[ "$vif" == "lan"* ]] || [[ "$vif" == "wan"* ]] || \ |
| 22 | - [[ "$vif" == "wlan"* ]] || [[ "$vif" == "phy"* ]]; then |
| 23 | + [[ "$vif" == "wlan"* ]] || [[ "$vif" == "wifi"* ]]; then |
| 24 | RPS_IF_LIST="$RPS_IF_LIST $vif" |
| 25 | fi |
| 26 | done; |
| 27 | @@ -122,7 +123,7 @@ MT7988() |
| 28 | |
| 29 | for vif in $NET_IF_LIST; |
| 30 | do |
| 31 | - if [[ "$vif" == "wlan"* ]] || [[ "$vif" == "phy"* ]]; then |
| 32 | + if [[ "$vif" == "wlan"* ]] || [[ "$vif" == "wifi"* ]]; then |
| 33 | WIFI_IF_LIST="$WIFI_IF_LIST $vif" |
| 34 | fi |
| 35 | done; |
| 36 | @@ -325,7 +326,7 @@ MT7622() |
| 37 | |
| 38 | setup_model() |
| 39 | { |
| 40 | - board=$(board_name) |
| 41 | + board=$board_name |
| 42 | num_of_wifi=$NUM_WIFI_CARD |
| 43 | |
| 44 | if [[ $board == *"7988"* ]]; then |