3
0
mirror of https://github.com/42wim/matterbridge.git synced 2025-02-27 19:00:44 +01:00
Wim 21eb37e471
Update vendor ()
* Update vendor

* Use upstream emoji lib again
2021-04-03 19:16:46 +02:00

14 lines
264 B
Go

// +build linux
package xid
import "io/ioutil"
func readPlatformMachineID() (string, error) {
b, err := ioutil.ReadFile("/etc/machine-id")
if err != nil || len(b) == 0 {
b, err = ioutil.ReadFile("/sys/class/dmi/id/product_uuid")
}
return string(b), err
}