diff options
author | Michael Sweet <michael.r.sweet@gmail.com> | 2017-12-06 22:43:57 -0500 |
---|---|---|
committer | Michael Sweet <michael.r.sweet@gmail.com> | 2017-12-06 22:43:57 -0500 |
commit | f306ad4d329883820d188b71582e677b277646c7 (patch) | |
tree | aee6f043e22d1cd3f066a8392aa61567997d87d3 /systemv/lpinfo.c | |
parent | fce9ddcbeed910e86c0381d696a6dc387b65ac71 (diff) | |
download | cups-f306ad4d329883820d188b71582e677b277646c7.tar.gz |
Finalize printer and class information in new administration guide.
Update lpadmin to copy printer-info, printer-location, and printer-geo-location
from the IPP printer when using the "everywhere" driver.
Update lpinfo to list the "everywhere" driver.
Diffstat (limited to 'systemv/lpinfo.c')
-rw-r--r-- | systemv/lpinfo.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/systemv/lpinfo.c b/systemv/lpinfo.c index 24175b69b..54214a773 100644 --- a/systemv/lpinfo.c +++ b/systemv/lpinfo.c @@ -1,7 +1,7 @@ /* * "lpinfo" command for CUPS. * - * Copyright 2007-2016 by Apple Inc. + * Copyright 2007-2017 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * Licensed under Apache License v2.0. See the file "LICENSE" for more information. @@ -450,6 +450,25 @@ show_models( } ippDelete(response); + + /* + * Show the "everywhere" model, which is handled by the lpadmin command... + */ + + if ((!include_schemes || strstr(include_schemes, "everywhere")) && (!exclude_schemes || !strstr(exclude_schemes, "everywhere"))) + { + if (long_status) + { + _cupsLangPrintf(stdout, + _("Model: name = %s\n" + " natural_language = %s\n" + " make-and-model = %s\n" + " device-id = %s"), + "everywhere", cupsLangDefault()->language, "IPP Everywhere", "CMD:PwgRaster"); + } + else + _cupsLangPuts(stdout, "everywhere IPP Everywhere"); + } } else { |