2
0
forked from Ivasoft/openwrt

x86: add/improve support for Sophos SG/XG products

* Better product ID for Sophos SG/XG-105 models
* Add support for Sophos SG/XG-135 r1, r2 with/without wireless

Signed-off-by: Stan Grishin <stangri@melmac.ca>
[Changed subject to x86 - probably eaten somewhere, the PR had it]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
Stan Grishin
2021-12-05 22:32:04 +00:00
committed by Christian Lamparter
parent 1c4b3ce344
commit ffab23d99d
2 changed files with 13 additions and 4 deletions

View File

@@ -23,9 +23,11 @@ do_sysinfo_x86() {
break
;;
"Sophos:SG"|"Sophos:XG")
case "$(cat /sys/devices/virtual/dmi/id/product_version 2>/dev/null)" in
105*)
product="${product}-105"
local product_version
product_version="$(cat /sys/devices/virtual/dmi/id/product_version 2>/dev/null)"
case "$product_version" in
105*|135*)
product="${product}-${product_version}"
break
;;
esac