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