From 7c179b02fce5309019ce664fb875a48ea3f7e21f Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Thu, 20 Oct 2016 19:11:51 -0700 Subject: [PATCH] one more fix, changed 5 type to pizza-box for /sys id, because we already have one case where a laptop reports as pizza box, and desktops generally do too, and they could be a server, or used as a server due to 1U form factor. --- inxi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index b264f77..503fcea 100755 --- a/inxi +++ b/inxi @@ -5361,10 +5361,13 @@ get_device_data() device='unknown' ;; # note: 13 is all-in-one which we take as a mac type system - # 5 - pizza box was a 1 U desktop enclosure, but some old laptops also id this way - 3|4|5|6|7|13|15|24) + 3|4|6|7|13|15|24) device='desktop' ;; + # 5 - pizza box was a 1 U desktop enclosure, but some old laptops also id this way + 5) + device='pizza-box' + ;; # note: lenovo T420 shows as 10, notebook, but it's not a notebook 9|10|16) device='laptop'