x86/base-files: add support for Sophos SG/XG-105
authorStan Grishin <stangri@melmac.net>
Wed, 24 Mar 2021 16:18:08 +0000 (16:18 +0000)
committerPaul Spooren <mail@aparcar.org>
Fri, 26 Mar 2021 19:15:38 +0000 (09:15 -1000)
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>
target/linux/x86/base-files/etc/board.d/02_network
target/linux/x86/base-files/lib/preinit/01_sysinfo

index 8d10c637e804a5ade19a499ebef4a9130420cc32..581daf49b6e2b2bf45b9196715953a7b308700fc 100644 (file)
@@ -11,6 +11,9 @@ case "$(board_name)" in
 pc-engines-apu1|pc-engines-apu2|pc-engines-apu3)
        ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
        ;;
+sophos-sg-105|sophos-xg-105)
+       ucidef_set_interfaces_lan_wan "eth0 eth2 eth3" "eth1"
+       ;;
 traverse-technologies-geos)
        ucidef_set_interface_lan "eth0 eth1"
        ucidef_add_atm_bridge "0" "35" "llc" "bridged"
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
                        ;;