Section 8: cardmgr



This page was been converted automatically, from Debian GNU/Linux man pages.




CARDMGR(8)                                             CARDMGR(8)


NAME

cardmgr - PCMCIA device manager

SYNOPSIS

cardmgr [-V] [-q] [-d] [-o] [-f] [-v] [-c configpath] [-m modpath] [-p pidfile] [-s stabfile]

DESCRIPTION

Cardmgr monitors PCMCIA sockets for card insertion and removal events. When a card is inserted, cardmgr looks up the card in a database of known cards. If the card can be identified, appropriate device drivers will be loaded and bound to the card. When a card is ejected, that card's drivers will be shut down and unloaded if possible. Based on the contents of the PCMCIA card configuration database, cardmgr may also execute arbitrary commands when appropri- ate cards are either inserted or removed. All insertion and removal events, device driver loads and unloads, and startup and shutdown commands are reported in the system log file. Warnings and errors will also be logged. Current card and device information for each socket is recorded in /var/state/pcmcia/stab, /var/lib/pcmcia/stab, or /var/run/stab. Normally, when a card is identified, cardmgr will send a beep to the console. A beep is also generated when a card is successfully configured. A beep of lower pitch is gen- erated if either of these steps fails. Ejecting a card produces a single beep. When cardmgr receives a SIGHUP signal, it will reload its configuration file. When cardmgr receives a SIGTERM sig- nal, it will shut down all sockets that are not busy and then exit, but drivers for busy sockets will stay loaded. If the PCMCIA_OPTS environment variable is set, its con- tents will be parsed after the main card configuration file is read.

OPTIONS

-V Show version information and exit. -q Quiet mode: don't beep when cards are inserted. -v Verbose mode: generates more informational messages during normal operation. -d Follow module dependencies when loading driver mod- ules, by defaulting to use modprobe instead of ins- mod. Normally, cardmgr will try using modprobe only after an unsuccessful attempt with insmod. -f Foreground: do not fork and run as a daemon until pcmcia-cs 1999/10/25 19:50:45 1 CARDMGR(8) CARDMGR(8) after configuring any cards that are already pre- sent. -o One pass: configure cards that are present, then exit. This flag also forces cardmgr to run in the foreground. -c configpath Look for the card configuration database and card configuration scripts in the specified directory, instead of /etc/pcmcia. -m modpath Look for loadable kernel modules in the specified directory, instead of /lib/modules/`uname-r`. -p pidfile Write the PID of the cardmgr process to the speci- fied file, instead of /var/run/cardmgr.pid. -s stabfile Write current socket information to the specified file, instead of /var/{state,lib}/pcmcia/stab or /var/run/stab.

FILES

/etc/pcmcia/config Card configuration database /etc/pcmcia/config.opts Local resource settings for PCM- CIA devices /var/run/cardmgr.pid PID of active cardmgr process /var/{{state,lib}/pcmcia,run}/stab Current card and device informa- tion for each socket.

AUTHOR

David Hinds - dhinds@pcmcia.sourceforge.org SEE ALSO pcmcia(5), stab(5), cardctl(8), cardinfo(8). pcmcia-cs 1999/10/25 19:50:45 2