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