Rechercher une page de manuel

Chercher une autre page de manuel:


Langue: en

Version: 01/02/2008 (ubuntu - 07/07/09)

Section: 1 (Commandes utilisateur)


hardware-connected - indicates whether given hardware is connected


hardware-connected [-hv] [-m MODNAME | MODALIAS_PATTERN ...]


hardware-connected indicates whether given hardware exists in the system via its return code.

The tool matches modalias patterns passed as command line parameters or on standard input against /sys/devices/**/modalias (using the fnmatch function). When using the verbose mode, it also prints the matching modaliases on standard output.

Alternatively, it can query /sbin/modinfo for the modalias patterns of a kernel module.



Show usage.


Be verbose: print matching modaliases on standard output.


Query the modalias patterns from the module MODNAME using modinfo.


hardware-connected -m 8139too && echo yes

Prints "yes" if an RTL-8139 ethernet interface is connected to the computer.

hardware-connected -v 'pci:*bc03sc00*'

Prints the modalias of each VGA adapter connected to the PCI bus.


Written by Johan Kiviniemi <[1]>


Web site:

Git branch: git://

Git browser:

Copyright © 2008 Johan Kiviniemi

This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. There is NO WARRANTY, to the extent permitted by law.


je suis un roliste mou
-+- J *A* in Guide du Petit Joueur: Confession d'un blob -+-