aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.ca>2021-12-05 22:32:04 +0000
committerChristian Lamparter <chunkeey@gmail.com>2021-12-11 00:50:02 +0100
commitffab23d99d980974e502989994f3aaec3f462865 (patch)
treed07211000d68f24e68f8ca54182aa23629e995a5 /target
parent1c4b3ce344ff71641defe989457060b72885e27e (diff)
downloadupstream-ffab23d99d980974e502989994f3aaec3f462865.tar.gz
upstream-ffab23d99d980974e502989994f3aaec3f462865.tar.bz2
upstream-ffab23d99d980974e502989994f3aaec3f462865.zip
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>
Diffstat (limited to 'target')
-rw-r--r--target/linux/x86/base-files/etc/board.d/02_network9
-rw-r--r--target/linux/x86/base-files/lib/preinit/01_sysinfo8
2 files changed, 13 insertions, 4 deletions
diff --git a/target/linux/x86/base-files/etc/board.d/02_network b/target/linux/x86/base-files/etc/board.d/02_network
index 2a07518096..21238a5df1 100644
--- a/target/linux/x86/base-files/etc/board.d/02_network
+++ b/target/linux/x86/base-files/etc/board.d/02_network
@@ -17,9 +17,16 @@ pc-engines-apu1|pc-engines-apu2|pc-engines-apu3)
roqos-roqos-core-rc10)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
;;
-sophos-sg-105|sophos-xg-105)
+sophos-sg-105r1|sophos-xg-105r1| \
+sophos-sg-105r2|sophos-xg-105r2)
ucidef_set_interfaces_lan_wan "eth0 eth2 eth3" "eth1"
;;
+sophos-sg-135r1|sophos-xg-135r1| \
+sophos-sg-135Wr1|sophos-xg-135Wr1| \
+sophos-sg-135r2|sophos-xg-135r2| \
+sophos-sg-135Wr2|sophos-xg-135Wr2)
+ ucidef_set_interfaces_lan_wan "eth0 eth2 eth3 eth4 eth5 eth6 eth7" "eth1"
+ ;;
traverse-technologies-geos)
ucidef_set_interface_lan "eth0 eth1"
ucidef_add_atm_bridge "0" "35" "llc" "bridged"
diff --git a/target/linux/x86/base-files/lib/preinit/01_sysinfo b/target/linux/x86/base-files/lib/preinit/01_sysinfo
index 682ce4a5bb..0687f4ca13 100644
--- a/target/linux/x86/base-files/lib/preinit/01_sysinfo
+++ b/target/linux/x86/base-files/lib/preinit/01_sysinfo
@@ -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