hwid 0.3.7 → 0.4.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 +2 -2
- 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: 347ac63e9b96d23e4023bf5aadf258d5c80b5a0246361baeae9fea081287602c
|
4
|
+
data.tar.gz: 8dca11a19ca1ad94776702b3be99f0c78887e87af3f26a667b0368d8d85c087b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1124b3a1888b84ecd94cb80b98d192625b3f9bc7d99d3b22bf39eb88e48e618b72e08ab20d6022b07d351a2c6d9627f90ed31764b3b55a04fbe76abcaa50fd13
|
7
|
+
data.tar.gz: 35fc3b996254f7e2c365bf50121b81da8e6073d26073819515bb0b217cea6653388fbd7769f1e302dbf9ad897bc5856320c10442cd97b38db4fbbcc4b223328d
|
data/lib/hwid/base.rb
CHANGED
@@ -37,7 +37,7 @@ module Hwid
|
|
37
37
|
end
|
38
38
|
def systemid
|
39
39
|
platform=get_platform
|
40
|
-
|
40
|
+
puts "debug: platform is #{platform} #{RUBY_PLATFORM}"
|
41
41
|
return get_rasp_id if platform.include?("raspberry")
|
42
42
|
return get_rasp_id if platform.include?("raspberry 2")
|
43
43
|
return get_mac_id if platform.include?("mac")
|
@@ -61,7 +61,7 @@ module Hwid
|
|
61
61
|
end
|
62
62
|
def get_windows_id
|
63
63
|
puts "running windows linux sigh"
|
64
|
-
res=run_cmd("lshw -quiet -class network -disable usb
|
64
|
+
res=run_cmd("lshw -quiet -class network -disable usb -disable spd | grep -oP '(serial: )\\K.*'")
|
65
65
|
res=res.gsub("0000-","")
|
66
66
|
res=res.gsum(":","")
|
67
67
|
res=res.gsub("\n","")
|