1 |
#! /bin/sh /usr/share/dpatch/dpatch-run |
2 |
## hp-check-groups.dpatch by <msp@debian.org> |
3 |
## |
4 |
## All lines beginning with `## DP:' are a description of the patch. |
5 |
## DP: https://bugs.launchpad.net/debian/+source/hplip/+bug/530746 |
6 |
|
7 |
@DPATCH@ |
8 |
diff -urNad '--exclude=CVS' '--exclude=.svn' '--exclude=.git' '--exclude=.arch' '--exclude=.hg' '--exclude=_darcs' '--exclude=.bzr' hplip-3.10.2~/check.py hplip-3.10.2/check.py |
9 |
--- hplip-3.10.2~/check.py 2010-02-25 10:07:55.000000000 +1100 |
10 |
+++ hplip-3.10.2/check.py 2010-04-09 08:03:08.000000000 +1000 |
11 |
@@ -859,6 +859,16 @@ |
12 |
if status == 0: |
13 |
log.info(output) |
14 |
|
15 |
+ if "lp " in output: |
16 |
+ log.info(log.green("User member of group 'lp'. Enables print/ scan/ fax.")) |
17 |
+ else: |
18 |
+ log.error("User needs to be member of group 'lp' to enable print, scan & fax.") |
19 |
+ |
20 |
+ if "lpadmin" in output: |
21 |
+ log.info(log.green("User member of group 'lpadmin'.")) |
22 |
+ else: |
23 |
+ log.error("User needs to be member of group 'lpadmin' to manage printers.") |
24 |
+ |
25 |
|
26 |
tui.header("SUMMARY") |
27 |
|