mirror of https://github.com/jetkvm/kvm.git
chore: remove unused function readOtpEntropy
This commit is contained in:
parent
ae3b2b7628
commit
5f76e30e55
8
hw.go
8
hw.go
|
|
@ -31,14 +31,6 @@ func extractSerialNumber() (string, error) {
|
||||||
return matches[1], nil
|
return matches[1], nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func readOtpEntropy() ([]byte, error) { //nolint:unused
|
|
||||||
content, err := os.ReadFile("/sys/bus/nvmem/devices/rockchip-otp0/nvmem")
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return content[0x17:0x1C], nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error {
|
func hwReboot(force bool, postRebootAction *ota.PostRebootAction, delay time.Duration) error {
|
||||||
logger.Info().Dur("delay", delay).Msg("reboot requested")
|
logger.Info().Dur("delay", delay).Msg("reboot requested")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue