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