summarylogtreecommitdiffstats
path: root/brother-dcpj577n.install
diff options
context:
space:
mode:
authorArchiso2019-06-22 14:36:46 +0900
committerArchiso2019-06-22 14:36:46 +0900
commit18c4ab77232ac9c2c8fb886fb7a7a17a989d74ee (patch)
treebd85b75311867b127afcc28ad1151fcff7d0809e /brother-dcpj577n.install
downloadaur-18c4ab77232ac9c2c8fb886fb7a7a17a989d74ee.tar.gz
First commit
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 000000000000..0cf78e3cfec1
--- /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 "$@"
+