From 1eecd40539bb2d7cf77213ace606539caa8e97eb Mon Sep 17 00:00:00 2001 From: leimingsheng Date: Thu, 26 Jun 2025 10:27:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor(master=20:=20nicsensor)=E6=8F=90?= =?UTF-8?q?=E9=AB=98auto=E8=AF=86=E5=88=AB=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E7=9A=84=E5=81=A5=E5=A3=AE=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nicsensor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nicsensor.sh b/nicsensor.sh index 198473c..0577de5 100755 --- a/nicsensor.sh +++ b/nicsensor.sh @@ -269,7 +269,7 @@ try_get_server_type(){ if [ -e "/tmp/ns_servertype" ];then server_type=`cat /tmp/ns_servertype` else - boardid=`cat /proc/cmdline | awk -F'=' '/boardid=/{print $8; exit}'` + boardid=`cat /proc/cmdline | awk -F 'boardid=' '{split($2, a," "); print a[1]}'` if [ $boardid -eq 130 ];then server_type="5280m7"