LPINIT(C) XENIX System V LPINIT(C)
Name
lpinit - Adds, reconfigures and maintains lineprinters.
Syntax
/etc/lpinit
Description
lpinit is a shell script for configuring and adding new
lineprinters to a system, and for maintaining and
reconfiguring existing printers. It should only be executed
by the system manager.
lpinit displays a menu with the following options:
1) Add a new printer
2) Remove a printer
3) Reconfigure an existing printer
4) Assign a system default printer
5) Print lp status information
When reconfiguring an existing printer the following options
are given:
1) Insert a printer into a class
2) Remove a printer from a class
3) Install a new interface program for a printer
4) Associate a new device with a printer
Information which the system manager may be asked to supply
includes:
- The printer device (e.g. /dev/lp0).
- The printer name (default is printer).
- The pathname of the interface program (several
example programs are supported).
- The name of a class into which to insert or
remove a printer.
- Whether the printer being added or reconfigured
is a parallel or serial printer.
The printer name can be any combination of up to 14
alphanumeric characters or underscores. A printer interface
program can be a shell script, C program, or any executable
program; or the model interface program,
/usr/spool/lp/model/dumb, can be copied and modified. (See
the ``Models'' section of the lpadmin(C) manual page.)
When adding a new printer, lpinit changes the acceptance
status of the new lineprinter to ``accept,'' and enables it
to print files. /etc/lpinit then asks if the new printer
will be the default printing destination. All nonspecific
print requests are routed to the default destination (see
lp(C)).
If the line printer scheduler is running when lpinit is
Page 1 (printed 8/7/87)
LPINIT(C) XENIX System V LPINIT(C)
invoked, the user is reminded that any jobs which are
printing may be interrupted and the user is asked if he
wants to continue. The scheduler is restarted when lpinit
exits only if it was running when lpinit was invoked or if a
new printer was added.
The steps to configure a new printer can be taken
separately, (see lpadmin(C), accept(C), enable(C), and
lpsched(C) for more information).
Files
/etc/lpinit
See Also
accept(C), enable(C), lp(C), lpadmin(C), lpsched(C)
Page 2 (printed 8/7/87)