refactor(master : nicsensor)提高auto识别服务器的健壮性
This commit is contained in:
parent
6fce071426
commit
1eecd40539
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user