chore: remove unused function readOtpEntropy

This commit is contained in:
Siyuan 2025-11-18 14:49:03 +00:00
parent ae3b2b7628
commit 5f76e30e55
1 changed files with 0 additions and 8 deletions

8
hw.go
View File

@ -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")