summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/rs/xid/hostid_linux.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-05-27 21:48:57 +0200
committerWim <wim@42.be>2018-05-27 21:48:57 +0200
commitfc6074ea9fba9684aaad1ab6d43a0ec23db8c5d3 (patch)
tree28a92899258e0f1e546fdba72ff09a4b1b759a83 /vendor/github.com/rs/xid/hostid_linux.go
parentab1670e2cec92d4ff1058f854198ea6c9c0750d0 (diff)
downloadmatterbridge-msglm-fc6074ea9fba9684aaad1ab6d43a0ec23db8c5d3.tar.gz
matterbridge-msglm-fc6074ea9fba9684aaad1ab6d43a0ec23db8c5d3.tar.bz2
matterbridge-msglm-fc6074ea9fba9684aaad1ab6d43a0ec23db8c5d3.zip
Add vendor github.com/rs/xid
Diffstat (limited to 'vendor/github.com/rs/xid/hostid_linux.go')
-rw-r--r--vendor/github.com/rs/xid/hostid_linux.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/rs/xid/hostid_linux.go b/vendor/github.com/rs/xid/hostid_linux.go
new file mode 100644
index 00000000..7d0c4a9e
--- /dev/null
+++ b/vendor/github.com/rs/xid/hostid_linux.go
@@ -0,0 +1,10 @@
+// +build linux
+
+package xid
+
+import "io/ioutil"
+
+func readPlatformMachineID() (string, error) {
+ b, err := ioutil.ReadFile("/sys/class/dmi/id/product_uuid")
+ return string(b), err
+}