hotfix dmidecode 命令前添加 sudo
This commit is contained in:
+2
-2
@@ -58,11 +58,11 @@ public class DeviceFingerprintService {
|
||||
}
|
||||
|
||||
private String getCpuModel() {
|
||||
return executeCommand("dmidecode -t processor | grep \"Version\" | awk -F\\ '{print $2$3$4}'");
|
||||
return executeCommand("sudo dmidecode -t processor | grep \"Version\" | awk -F\\ '{print $2$3$4}'");
|
||||
}
|
||||
|
||||
private String getCpuSerialNumber() {
|
||||
return executeCommand("dmidecode -t processor | grep \"Serial Number\" | awk -F\\ '{print $3}'");
|
||||
return executeCommand("sudo dmidecode -t processor | grep \"Serial Number\" | awk -F\\ '{print $3}'");
|
||||
}
|
||||
|
||||
private String getHardDiskSerialNumber() {
|
||||
|
||||
Reference in New Issue
Block a user