diff options
author | Stan Grishin <stangri@melmac.net> | 2021-03-24 16:18:08 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-04-10 15:05:05 +0200 |
commit | 86213141fb1abd91217157cef6edf8070765eaef (patch) | |
tree | 9bffe41c3a63c483a9a742c516e3ca4f2e3dc23f /target | |
parent | 40143873d654108503a90ad9d52ea9e74d6e6ffd (diff) | |
download | upstream-86213141fb1abd91217157cef6edf8070765eaef.tar.gz upstream-86213141fb1abd91217157cef6edf8070765eaef.tar.bz2 upstream-86213141fb1abd91217157cef6edf8070765eaef.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>
(cherry picked from commit 64eaf633ff7f9280e04e65ae290eb8b65dd9e021)
Diffstat (limited to 'target')
-rwxr-xr-x | target/linux/x86/base-files/etc/board.d/02_network | 3 | ||||
-rw-r--r-- | target/linux/x86/base-files/lib/preinit/01_sysinfo | 8 |
2 files changed, 11 insertions, 0 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 c6e381b946..21f054019a 100755 --- a/target/linux/x86/base-files/etc/board.d/02_network +++ b/target/linux/x86/base-files/etc/board.d/02_network @@ -12,6 +12,9 @@ case "$(board_name)" in pc-engines-apu|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" diff --git a/target/linux/x86/base-files/lib/preinit/01_sysinfo b/target/linux/x86/base-files/lib/preinit/01_sysinfo index 466c831e7e..592330257f 100644 --- a/target/linux/x86/base-files/lib/preinit/01_sysinfo +++ b/target/linux/x86/base-files/lib/preinit/01_sysinfo @@ -18,6 +18,14 @@ do_sysinfo_x86() { for file in product_name board_name; do product="$(cat /sys/devices/virtual/dmi/id/$file 2>/dev/null)" case "$vendor:$product" in + "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 ;; |