summaryrefslogtreecommitdiff
path: root/debian/99-libsane1.rules
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-09-30 18:33:48 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-09-30 18:33:48 +0200
commit48bb1feef2e1b36a4cb7f014e58146ad18402364 (patch)
tree4c4fb21bcd1c1e2fd99ad7dd45e28bb48a11a470 /debian/99-libsane1.rules
parent5cb641c75f11518b06a955e6d817b622fe7ed10f (diff)
d/99-libsane1.rules: Add condition to run setfacl only on usb scanners
Diffstat (limited to 'debian/99-libsane1.rules')
-rw-r--r--debian/99-libsane1.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/99-libsane1.rules b/debian/99-libsane1.rules
index ada47b4..42d0dd4 100644
--- a/debian/99-libsane1.rules
+++ b/debian/99-libsane1.rules
@@ -1,2 +1,2 @@
-ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"
+ENV{DEVNAME}!="", ENV{libsane_matched}=="yes", RUN+="/bin/setfacl -m g:scanner:rw $env{DEVNAME}"