hwid 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hwid/base.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 910de3f9ea8a2711510dd0579cac4b9587edf52bda25f7564694876a2c3cbf24
|
4
|
+
data.tar.gz: 44956baab668dce61629500cd01603e528614f12d036a4923970288c080d30fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4690b2b375681814e4d3bde057733a9dd5719314c486108dd54e39491388a6d8efb92498c8d34ad048c6aaf671ff4ad67010b94478364f1e89d176a5571ca850
|
7
|
+
data.tar.gz: b117c59bc084a297ea6f8f8521febe20d05747390ec7fb6660e8ea87fcc68c3f9a8b11b7765f4878ae3c9e99956c33d1730b3707d46674ef0a4362e0f0173209
|
data/lib/hwid/base.rb
CHANGED
@@ -65,7 +65,7 @@ module Hwid
|
|
65
65
|
res="Serial: unknown"
|
66
66
|
# lshw -quiet -class cpu -disable usb -disable network -disable pci -disable cpuinfo -disable dmi -disable memory -disable isapnp -disable ide -disable device-tree -disable spd | grep -oP '(serial: )\K.*
|
67
67
|
# res=run_cmd("lshw -quiet -class cpu -disable usb -disable network -disable pci -disable cpuinfo -disable dmi -disable memory -disable isapnp -disable ide -disable device-tree -disable spd | grep -oP '(serial: )\\K.*'")
|
68
|
-
res=run_cmd("
|
68
|
+
res=run_cmd("lshw -quiet -class cpu -class network -disable usb -disable pci -disable cpuinfo -disable dmi -disable memory -disable isapnp -disable ide -disable device-tree -disable spd | grep -oP '(serial: )\\K.*'")
|
69
69
|
res=res.gsub("0000-","")
|
70
70
|
res=res.gsub("\n","")
|
71
71
|
#res=run_cmd("lshw | grep -A 10 '*-cpu' | grep -oP '(serial: )\\K.*'")
|