mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 14:23:38 +00:00
x86: improve sysinfo handling manufacturer like R86S etc.
This commit is contained in:
parent
bcad74fa27
commit
b143589cf2
@ -12,6 +12,14 @@ do_sysinfo_x86() {
|
|||||||
|
|
||||||
for file in sys_vendor board_vendor; do
|
for file in sys_vendor board_vendor; do
|
||||||
vendor="$(cat /sys/devices/virtual/dmi/id/$file 2>/dev/null)"
|
vendor="$(cat /sys/devices/virtual/dmi/id/$file 2>/dev/null)"
|
||||||
|
case "$vendor" in
|
||||||
|
"System manufacturer")
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
"To be filled by O.E.M."|"To Be Filled By O.E.M.")
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
esac
|
||||||
[ -n "$vendor" ] && break
|
[ -n "$vendor" ] && break
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -33,6 +41,12 @@ do_sysinfo_x86() {
|
|||||||
"Supermicro:Super Server")
|
"Supermicro:Super Server")
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
|
?*:System\ Product\ Name)
|
||||||
|
continue
|
||||||
|
;;
|
||||||
|
?*:To\ be\ filled\ by\ O\.E\.M\.|?*:To\ Be\ Filled\ By\ O\.E\.M\.)
|
||||||
|
continue
|
||||||
|
;;
|
||||||
?*:?*)
|
?*:?*)
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user