summarylogtreecommitdiffstats
path: root/brother-dcpj152w.install
diff options
context:
space:
mode:
authoribilux2017-11-12 17:52:56 +0100
committeribilux2017-11-12 17:52:56 +0100
commitfc6263e346797a47c42ef0d8b2d4083855b21cd2 (patch)
tree190507929d1b68af70217262d7c3a1d87af35ed4 /brother-dcpj152w.install
downloadaur-fc6263e346797a47c42ef0d8b2d4083855b21cd2.tar.gz
initializing
Diffstat (limited to 'brother-dcpj152w.install')
-rw-r--r--brother-dcpj152w.install27
1 files changed, 27 insertions, 0 deletions
diff --git a/brother-dcpj152w.install b/brother-dcpj152w.install
new file mode 100644
index 000000000000..11d89d7f82c4
--- /dev/null
+++ b/brother-dcpj152w.install
@@ -0,0 +1,27 @@
+post_install() {
+ # lpr
+ /opt/brother/Printers/dcpj152w/inf/setupPrintcapij dcpj152w -i
+
+ # cupswrapper
+ /opt/brother/Printers/dcpj152w/cupswrapper/cupswrapperdcpj152w
+
+ systemctl restart org.cups.cupsd.service
+}
+
+post_upgrade() {
+ /bin/true
+}
+
+pre_remove() {
+ # lpr
+ /opt/brother/Printers/dcpj152w/inf/setupPrintcapij dcpj152w -e
+
+ # cupswrapper
+ /opt/brother/Printers/dcpj152w/cupswrapper/cupswrapperdcpj152w -e
+}
+
+op=$1
+shift
+
+$op "$@"
+