summarylogtreecommitdiffstats
path: root/brother-dcpj785dw.install
diff options
context:
space:
mode:
Diffstat (limited to 'brother-dcpj785dw.install')
-rw-r--r--brother-dcpj785dw.install27
1 files changed, 27 insertions, 0 deletions
diff --git a/brother-dcpj785dw.install b/brother-dcpj785dw.install
new file mode 100644
index 000000000000..6f515c0adaa1
--- /dev/null
+++ b/brother-dcpj785dw.install
@@ -0,0 +1,27 @@
+post_install() {
+ # lpr
+ /opt/brother/Printers/dcpj785dw/inf/setupPrintcapij dcpj785dw -i
+
+ # cupswrapper
+ /opt/brother/Printers/dcpj785dw/cupswrapper/cupswrapperdcpj785dw
+
+ systemctl restart org.cups.cupsd
+}
+
+post_upgrade() {
+ /bin/true
+}
+
+pre_remove() {
+ # lpr
+ /opt/brother/Printers/dcpj785dw/inf/setupPrintcapij dcpj785dw -e
+
+ # cupswrapper
+ /opt/brother/Printers/dcpj785dw/cupswrapper/cupswrapperdcpj785dw -e
+}
+
+op=$1
+shift
+
+$op "$@"
+