mirror of
https://github.com/42wim/matterbridge
synced 2024-11-17 03:26:07 +00:00
21eb37e471
* Update vendor * Use upstream emoji lib again
14 lines
264 B
Go
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
|
|
}
|