hwid 0.4.4 → 0.4.5
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: b384f4c14d3ebd601ab9522c3af3a6c03f69e27950056fa3301afb3b76dc6a7c
|
4
|
+
data.tar.gz: fc47de366908605cdf864baa2c271c00cb79b537ab236271f5277586952afa7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55c083bbb4e72f07e5a87c49a47e8352b3cf30d699becd0130a33d883f362458616c91e072213c72ebd772b4ee913122065c975e5aaf273c7a469a8bbb5ccc08
|
7
|
+
data.tar.gz: 157ed7d5230b5647ad9727317106f6360a9aa942c85238878200c3ba62bac68b50a6f0fabe764ca0c3d764273251c4a73467c7621f7ab66286423d1016010df1
|
data/lib/hwid/base.rb
CHANGED
@@ -23,7 +23,7 @@ module Hwid
|
|
23
23
|
def get_platform
|
24
24
|
platform=[]
|
25
25
|
testos=`uname -a`
|
26
|
-
|
26
|
+
# puts "osname is #{testos}"
|
27
27
|
platform << "raspberry" if (/arm-linux/ =~ RUBY_PLATFORM) != nil and `uname -a`.include?('armv6')
|
28
28
|
platform << "raspberry" if `uname -a`.include?('armv6')
|
29
29
|
platform << "raspberry 2" if (/armv7l-linux/ =~ RUBY_PLATFORM) != nil and !`uname -a`.include?('armv6')
|
@@ -39,7 +39,7 @@ module Hwid
|
|
39
39
|
end
|
40
40
|
def systemid
|
41
41
|
platform=get_platform
|
42
|
-
|
42
|
+
# puts "debug: platform is #{platform} #{RUBY_PLATFORM}"
|
43
43
|
return get_rasp_id if platform.include?("raspberry")
|
44
44
|
return get_rasp_id if platform.include?("raspberry 2")
|
45
45
|
return get_mac_id if platform.include?("mac")
|