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"