Codebase list laptop-detect / 6d9455a
Added extra dmidecode checks (Laptop, Hand Held) Laszlo Toth 6 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5858 # dmidecode to grab the Chassis type
5959 dmitype=$("$dmidecode" --string chassis-type)
6060
61 if test "$dmitype" = "Notebook" || test "$dmitype" = "Portable"; then
62 $PRINTIT "We're a laptop (dmidecode returned $dmitype)" >&2
61 if test "$dmitype" = "Notebook" || \
62 test "$dmitype" = "Portable" || \
63 test "$dmitype" = "Laptop" || \
64 test "$dmitype" = "Hand Held"; then
65 $PRINTIT "We're a laptop (dmidecode returned \"$dmitype\")" >&2
6366 $EXIT 0
6467 fi
6568