x86/base-files: add support for Sophos SG/XG-105
[openwrt/openwrt.git] / target / linux / x86 / base-files / lib / preinit / 01_sysinfo
index b608d4edab885e538191b891fd40bc2c70a2ff32..682ce4a5bbedecd93b31061022fa58b477870578 100644 (file)
@@ -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
                        ;;