Browse Source

Added support for smartctl in arm64

Toby Chui 3 years ago
parent
commit
c4fcc03fb6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      mod/disk/smart/smart.go

+ 4 - 1
mod/disk/smart/smart.go

@@ -130,9 +130,12 @@ func getBinary() string {
 	if runtime.GOOS == "windows" {
 		return ".\\system\\disk\\smart\\win\\smartctl.exe"
 	} else if runtime.GOOS == "linux" {
-		if runtime.GOARCH == "arm" || runtime.GOARCH == "arm64" {
+		if runtime.GOARCH == "arm" {
 			return "./system/disk/smart/linux/smartctl_armv6"
 		}
+		if runtime.GOARCH == "arm64" {
+			return "./system/disk/smart/linux/smartctl_arm64"
+		}
 		if runtime.GOARCH == "386" || runtime.GOARCH == "amd64" {
 			return "./system/disk/smart/linux/smartctl_i386"
 		}