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