summarylogtreecommitdiffstats
path: root/pfufs.install
diff options
context:
space:
mode:
authorAlexander Kobel2019-03-07 19:22:18 +0100
committerAlexander Kobel2019-03-07 19:23:20 +0100
commit8e01ac147313fc8bfaf72697ba2b1a333f171ffb (patch)
tree1e39280feafdcbe33b13a8039043380c701c2cc2 /pfufs.install
downloadaur-8e01ac147313fc8bfaf72697ba2b1a333f171ffb.tar.gz
pfufs driver for Fujitsu fi series
Diffstat (limited to 'pfufs.install')
-rw-r--r--pfufs.install9
1 files changed, 9 insertions, 0 deletions
diff --git a/pfufs.install b/pfufs.install
new file mode 100644
index 000000000000..89adf0388e81
--- /dev/null
+++ b/pfufs.install
@@ -0,0 +1,9 @@
+post_install() {
+ echo "Patching sane's fujitsu.conf to ignore devices supported by the pfufs driver"
+ /usr/bin/patch /etc/sane.d/fujitsu.conf /opt/pfufs/etc/sane.d/fujitsu.conf.patch
+}
+
+pre_remove() {
+ echo "Reverting pfufs' patches to sane's fujitsu.conf"
+ /usr/bin/patch -R /etc/sane.d/fujitsu.conf /opt/pfufs/etc/sane.d/fujitsu.conf.patch
+}