hwid 0.1.4 → 0.1.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 +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d32bbef3deb4468c6390515d14ad8ff60b37ee6
|
4
|
+
data.tar.gz: 23977fd022384631e90de804d510303435cae18f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c77a798313622eed2aebcec9a370b2d5a7b6c7674a823061503908db04c9180ad39e07039f8abff530ae7f6f835fd8477cb94c160814b479a7ae73ebdc8ff6a7
|
7
|
+
data.tar.gz: f620a385f1451118a74356cd233f2bc4b7c3657c532654ed3dc9ef149163065e217d072f623da2a6cf59b80a95d964647cd8923d168dbd63433a38e1c4906e55
|
data/lib/hwid/base.rb
CHANGED
@@ -43,7 +43,7 @@ module Hwid
|
|
43
43
|
end
|
44
44
|
def get_linux_id
|
45
45
|
res="Serial: unknown"
|
46
|
-
ifconfig_avail = !(ifconfig_path = `which ifconfig`.strip).empty? && File.executable(ifconfig_path)
|
46
|
+
ifconfig_avail = !(ifconfig_path = `which ifconfig`.strip).empty? && File.executable?(ifconfig_path)
|
47
47
|
res=run_cmd('ifconfig | grep HWaddr').split.last if ifconfig_avail
|
48
48
|
res
|
49
49
|
end
|