summarylogtreecommitdiffstats
path: root/ricoh-spc260series-sane.install
diff options
context:
space:
mode:
authorGelatinousSlime2020-07-12 14:34:57 -0400
committerGelatinousSlime2020-07-12 14:44:08 -0400
commit02864952795bd79d43742cc9fc94a347a01d710d (patch)
tree3a054d97d0abe2da6413be3c8002b8c120b9877e /ricoh-spc260series-sane.install
downloadaur-02864952795bd79d43742cc9fc94a347a01d710d.tar.gz
initial commit
Diffstat (limited to 'ricoh-spc260series-sane.install')
-rw-r--r--ricoh-spc260series-sane.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/ricoh-spc260series-sane.install b/ricoh-spc260series-sane.install
new file mode 100644
index 000000000000..121343113971
--- /dev/null
+++ b/ricoh-spc260series-sane.install
@@ -0,0 +1,14 @@
+backend_name=sp_c260series
+
+post_install() {
+ echo ${backend_name} >> /etc/sane.d/dll.conf
+}
+
+post_remove() {
+ sed -i /"${backend_name}"/d /etc/sane.d/dll.conf
+}
+
+post_upgrade() {
+ post_remove
+ post_install
+} \ No newline at end of file