PATCH: Ubuntu place hpaio in /etc/sane.d/dll.d/hplip, so let hp-check there too
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
New
|
Undecided
|
Unassigned |
Bug Description
http://
Patch contents
#! /bin/sh /usr/share/
## hp-check_
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Debian/ Ubuntu place hpaio in /etc/sane.
@DPATCH@
diff -urNad hplip-2.
--- hplip-2.
+++ hplip-2.
@@ -693,6 +693,21 @@
+ # Debian/ Ubuntu place hpaio in /etc/sane.
+
+ if not found:
+ log.info(
+ try:
+ f = file('/
+ except IOError:
+ log.error(
+ num_errors += 1
+ else:
+ found = False
+ for line in f:
+ if 'hpaio' in line:
+ found = True
+
if found: