summarylogtreecommitdiffstats
path: root/brother-dcpj925dw.install
diff options
context:
space:
mode:
authorBartek2017-04-17 19:13:14 +0200
committerBartek2017-04-17 19:13:14 +0200
commita2cf4fd3d486b5f153b20333b93a50dceae4c583 (patch)
tree0edeae71bb241ccb4cb0b3be18e8d916d1df6bef /brother-dcpj925dw.install
downloadaur-a2cf4fd3d486b5f153b20333b93a50dceae4c583.tar.gz
DCP-J925DW Driver
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 "$@"
+