Skip to content

Commit

Permalink
x86: improve sysinfo handling of special values
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf authored and pull[bot] committed Jan 23, 2024
1 parent 47f9af4 commit 1268144
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions target/linux/x86/base-files/lib/preinit/01_sysinfo
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1268144

Please sign in to comment.