aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/base-files/lib/preinit/01_sysinfo
diff options
context:
space:
mode:
authorStan Grishin <stangri@melmac.net>2021-03-24 16:18:08 +0000
committerPaul Spooren <mail@aparcar.org>2021-03-26 09:15:38 -1000
commit64eaf633ff7f9280e04e65ae290eb8b65dd9e021 (patch)
tree09c77942ce51b15cec23ee8d688b040caa75138a /target/linux/x86/base-files/lib/preinit/01_sysinfo
parent0bd0de7d43b3846ad0d7006294e1daaadfa7b532 (diff)
downloadupstream-64eaf633ff7f9280e04e65ae290eb8b65dd9e021.tar.gz
upstream-64eaf633ff7f9280e04e65ae290eb8b65dd9e021.tar.bz2
upstream-64eaf633ff7f9280e04e65ae290eb8b65dd9e021.zip
x86/base-files: add support for Sophos SG/XG-105
This adds detection of the Sophos SG-105 and Sophos XG-105 models and assignment of ethernet ports these models have to LAN/WAN. Signed-off-by: Stan Grishin <stangri@melmac.net>
Diffstat (limited to 'target/linux/x86/base-files/lib/preinit/01_sysinfo')
-rw-r--r--target/linux/x86/base-files/lib/preinit/01_sysinfo8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/x86/base-files/lib/preinit/01_sysinfo b/target/linux/x86/base-files/lib/preinit/01_sysinfo
index b608d4edab..682ce4a5bb 100644
--- a/target/linux/x86/base-files/lib/preinit/01_sysinfo
+++ b/target/linux/x86/base-files/lib/preinit/01_sysinfo
@@ -22,6 +22,14 @@ do_sysinfo_x86() {
product="apu1"
break
;;
+ "Sophos:SG"|"Sophos:XG")
+ case "$(cat /sys/devices/virtual/dmi/id/product_version 2>/dev/null)" in
+ 105*)
+ product="${product}-105"
+ break
+ ;;
+ esac
+ ;;
"Supermicro:Super Server")
continue
;;