Linux Command Library
commands
Commands
basic
Basic
tips
Tips

laptop-detect

attempt to detect a laptop

laptop-detect [-h|--help|-v|--verbose|-V|--version]

Laptop-detect attempts to determine whether it is being run on a laptop or a desktop and appraises its caller of this.

-h --help
Output help information and exit.
-v --verbose
be verbose (messages go to STDOUT)
-V --version
Output version information and exit.

0 most likely running on a laptop 1 most likely NOT running on a laptop 2 usage error (arguments supplied) 

/proc/acpi/battery /proc/pmu/info

Franklin PIAT <fpiat@bigfoot.com>

dmidecode(8)

play store download app store download
Imprint
Sonnenallee 29, 12047 Berlin, Germany
e-mail: sschubert89@gmail.com

Privacy policy
Successfully copied