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