mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
x86: improve sysinfo handling of special values
This commit is contained in:
parent
7468945d5b
commit
5bfb6e66ac
@ -14,8 +14,10 @@ do_sysinfo_x86() {
|
||||
vendor="$(cat /sys/devices/virtual/dmi/id/$file 2>/dev/null)"
|
||||
case "$vendor" in
|
||||
empty | \
|
||||
Default\ string | \
|
||||
System\ manufacturer | \
|
||||
To\ [bB]e\ [fF]illed\ [bB]y\ O\.E\.M\.)
|
||||
vendor=" "
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
@ -26,6 +28,7 @@ do_sysinfo_x86() {
|
||||
product="$(cat /sys/devices/virtual/dmi/id/$file 2>/dev/null)"
|
||||
case "$vendor:$product" in
|
||||
?*:empty | \
|
||||
?*:Default\ string | \
|
||||
?*:System\ Product\ Name | \
|
||||
?*:To\ [bB]e\ [fF]illed\ [bB]y\ O\.E\.M\.)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user