diff --git a/internal/router/edgeos/edgeos.go b/internal/router/edgeos/edgeos.go index 939012c..f50f610 100644 --- a/internal/router/edgeos/edgeos.go +++ b/internal/router/edgeos/edgeos.go @@ -177,8 +177,8 @@ func LeaseFileDir() string { } func checkUSG() bool { - out, _ := exec.Command("mca-cli-op", "info").Output() - return bytes.Contains(out, []byte("UniFi-Gateway-")) + out, _ := os.ReadFile("/etc/version") + return bytes.HasPrefix(out, []byte("UniFiSecurityGateway.")) } func restartDNSMasq() error {