PCCARD.CONF(5) BSD Programmer's Manual PCCARD.CONF(5)NAME
/etc/pccard.conf - csctl(8) configuration file
DESCRIPTION
The /etc/pccard.conf file is the configuration file for the csctl(8) pro-
gram.
Lines that begin with a hash (``#'') are ignored. Lines begin with TAB or
SPACE are continuation line of last line. The following configuration
commands are available:
.include filename
Include filename. Note that the scope of definitions are global.
This means they can be referenced at any point after a file is
included.
.define NAME VALUE
Define a constant. The NAME and the VALUE are separated by
whitespace (TAB or SPACE). For example:
.define +12V 0x0010
.define -12V (+12V<<16)
dname vstr [vstr ...] [param1 [param2 ...]] [@insert cmd] [@remove cmd]
Define a configuration entry.
dname Name of the driver (e.g. com, ef, mz, ...)
vstr Version string. Each appears inside double quotes (``"'')
and may contain escapes from the C language such as \n,
\t, or \033.
If only one version string is specified, it is compared
as a substring; if there is more than one, the last is
compared as a substring and the rest are compared as com-
plete strings. Syntactically, "ABC" "DEF" is the same as
"ABC\0DEF". Finally, the substring comparison may be
suppressed by making the last version string be empty
("") or by placing a "\0" at the end of the version
string.
param1 [param2 ...]
Specify up to five optional parameters to pass to the
driver. Each is a simple expression that has the same
precedence as in the C language. You may use constants,
arithmetic operations (plus, minus, multiply, divide,
mod), bit mask and shift operations and parentheses. All
macro expansions occur before the expression is evaluat-
ed.
@insert cmd
@remove cmd
Execute the command cmd upon card insertion or removal.
Note that the remove action is deferred on suspend; it
does not occur until resume and then is immediately fol-
lowed by the insert action. Finally, these entries are
stored only in the daemon, not in the kernel.
dname[,dname] [file ...][@insert cmd] [@remove cmd]
This syntax allows you to define insert and remove commands for
specific drivers. Each driver name is separated by commas. Note
that defining either an insert or remove command overrides the
default configuration for the specified driver. The device name,
unit number and slot number may be indicated by using the special
sequences ``%D'', ``%U'', and ``%S'', respectively.
DEFAULT [@insert cmd] [@remove cmd]
Define a default command for card insertion or removal.
GETTYD INTERACTION
The @insert and @remove feature can be used to make gettyd(8) aware of
the insertion and removal of a PC Card modem. An example usage is to add
the following lines to /etc/pccard.conf:
com @insert "/etc/netscripts/modem.up tty0%U"
com @remove "/etc/netscripts/modem.down tty0%U"
The /etc/netscripts/modem.up and /etc/netscripts/modem.down scripts can
be links to the same file which contain the following shell commands:
#!/bin/sh
sleep 1
gettystat -r $1
This will request that gettyd(8) re-query the device 1 second after it is
removed or inserted.
SEE ALSOcsctl(8), gettyd(8), gettystat(8)AUTHOR
Atsushi Onoe <onoe@sm.sony.co.jp>
BSDI BSD/OS November 18, 1997 2