4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-06 10:44:04 +00:00

Update vendor (#1446)

* Update vendor

* Use upstream emoji lib again
This commit is contained in:
Wim
2021-04-03 19:16:46 +02:00
committed by GitHub
parent d3b60cc445
commit 21eb37e471
40 changed files with 8088 additions and 5397 deletions

View File

@ -5,6 +5,9 @@ package xid
import "io/ioutil"
func readPlatformMachineID() (string, error) {
b, err := ioutil.ReadFile("/sys/class/dmi/id/product_uuid")
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
}