mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-06 10:44:04 +00:00
Add vendor github.com/rs/xid
This commit is contained in:
10
vendor/github.com/rs/xid/hostid_linux.go
generated
vendored
Normal file
10
vendor/github.com/rs/xid/hostid_linux.go
generated
vendored
Normal file
@ -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
|
||||
}
|
Reference in New Issue
Block a user