x86: add brand display for R86S etc.

This commit is contained in:
lean 2022-01-04 23:52:49 +08:00
parent 9ba612191d
commit dced95e705
3 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=autocore PKG_NAME:=autocore
PKG_VERSION:=1 PKG_VERSION:=1
PKG_RELEASE:=41 PKG_RELEASE:=42
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk

View File

@ -28,10 +28,11 @@ start()
d=$(echo -n ' Core ') d=$(echo -n ' Core ')
e=$(cat /proc/cpuinfo | grep 'processor' | wc -l) e=$(cat /proc/cpuinfo | grep 'processor' | wc -l)
f=$(echo -n ' Thread ') f=$(echo -n ' Thread ')
g=${a}${b}${c}${d}${e}${f} g=$(dmesg | grep 'DMI:' | awk -F ',' '{print $1 }' | awk -F ':' '{print $2 }')
h=${g}' - '${a}${b}${c}${d}${e}${f}
mkdir -p /tmp/sysinfo mkdir -p /tmp/sysinfo
echo $g > /tmp/sysinfo/model echo $h > /tmp/sysinfo/model
a=$(ip address | grep ^[0-9] | awk -F: '{print $2}' | sed "s/ //g" | grep '^[e]' | grep -v "@" | grep -v "\.") a=$(ip address | grep ^[0-9] | awk -F: '{print $2}' | sed "s/ //g" | grep '^[e]' | grep -v "@" | grep -v "\.")
b=$(echo "$a" | wc -l) b=$(echo "$a" | wc -l)

View File

@ -14,7 +14,7 @@ pc-engines-apu1|pc-engines-apu2|pc-engines-apu3)
roqos-roqos-core-rc10) roqos-roqos-core-rc10)
ucidef_set_interfaces_lan_wan "eth1" "eth0" ucidef_set_interfaces_lan_wan "eth1" "eth0"
;; ;;
*r86s*) brounion-r86s)
ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0" ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
;; ;;
sophos-sg-105|sophos-xg-105) sophos-sg-105|sophos-xg-105)