Document | Tools used by printconf |
Author | Jan Holesovsky, <kendy@suse.cz>, Petr Blahos <pblahos@suse.cz> |
Id | $Id: tools.html,v 1.1.1.1 2002/06/27 08:53:19 jsrain Exp $ |
Usage: reset_parport /dev/lp?
Sends ioctl LPRESET to parallel port.
Used when stopping printing of test page.
Usage: test_device Message device timeout Example: test_device
Hello /dev/lp0 10
Sends message to device. Returns 0 if successfully finished. Returs 1 if timed
out. Returns 2 if there were problems writing to device.
Used in printconf_ask_device.ycp for testing the device user selected.
Usage: test_remote_lpd host queue timeout Example: test_remote_lpd
printservers.suse.de lp 20
See RFC1179 for details.
Returns 0 if there does not seem to be problem. Returns 1 if operation timed
out. Returns 2 if queue does not exist or does not accept jobs.
Used in printconf_ask_remote.ycp for testing remote lpd connection user
selected.
Usage: printconf_backup
Used to back up apsfilter settings. Backs up /etc/printcap,
/etc/gs.upp/*, /etc/apsfilterrc*. If /etc/printcap
does not exist before backup, it is created.
Used in printconf_write.ycp. Files are backed up before new settings
are written. If testpage is printed, backed up settings are restored. If final
save is done, backed up files are deleted.
Usage: printconf_parse_printcap
For each printer found in /etc/printcap creates map from:
/etc/apsfilterrc.y2prn_<printer_name>.y2save,
/etc/gs.upp/y2prn_<printer_name>.y2save, and part of printcap
relative to that printer. Creates list from those maps and prints to stdout:
result(<list>)
Used in printconf.ycp for reading of saved printers. (Initial fill
of user_settings).