mirror of
https://github.com/IceWhaleTech/CasaOS.git
synced 2025-11-07 07:09:46 +00:00
Change driver arch
This commit is contained in:
parent
a38e6ccd56
commit
2938fc24e0
@ -177,11 +177,7 @@ func PostKillCasaOS(c *gin.Context) {
|
|||||||
func GetSystemHardwareInfo(c *gin.Context) {
|
func GetSystemHardwareInfo(c *gin.Context) {
|
||||||
data := make(map[string]string, 1)
|
data := make(map[string]string, 1)
|
||||||
data["drive_model"] = service.MyService.System().GetDeviceTree()
|
data["drive_model"] = service.MyService.System().GetDeviceTree()
|
||||||
if runtime.GOARCH == "arm" {
|
data["arch"] = runtime.GOARCH
|
||||||
data["arch"] = "arm-7"
|
|
||||||
} else {
|
|
||||||
data["arch"] = runtime.GOARCH
|
|
||||||
}
|
|
||||||
|
|
||||||
if cpu := service.MyService.System().GetCpuInfo(); len(cpu) > 0 {
|
if cpu := service.MyService.System().GetCpuInfo(); len(cpu) > 0 {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user