summarylogtreecommitdiffstats
path: root/brother-dcpj100.install
diff options
context:
space:
mode:
authorAdam Nych2021-08-05 19:22:14 +0200
committerAdam Nych2021-08-05 19:22:14 +0200
commitdbeacf7288ec86f8549e770acc39ee464120a3ed (patch)
treefc20d1f91b164902f33f4bf3a8cdec78b07a8e2c /brother-dcpj100.install
downloadaur-dbeacf7288ec86f8549e770acc39ee464120a3ed.tar.gz
Initilize the package
Diffstat (limited to 'brother-dcpj100.install')
-rw-r--r--brother-dcpj100.install27
1 files changed, 27 insertions, 0 deletions
diff --git a/brother-dcpj100.install b/brother-dcpj100.install
new file mode 100644
index 000000000000..54d05408cec1
--- /dev/null
+++ b/brother-dcpj100.install
@@ -0,0 +1,27 @@
+post_install() {
+ # lpr
+ /opt/brother/Printers/dcpj100/inf/setupPrintcapij dcpj100 -i
+
+ # cupswrapper
+ /opt/brother/Printers/dcpj100/cupswrapper/cupswrapperdcpj100
+
+ systemctl restart org.cups.cupsd.service
+}
+
+post_upgrade() {
+ /bin/true
+}
+
+pre_remove() {
+ # lpr
+ /opt/brother/Printers/dcpj100/inf/setupPrintcapij dcpj100 -e
+
+ # cupswrapper
+ /opt/brother/Printers/dcpj100/cupswrapper/cupswrapperdcpj100 -e
+}
+
+op=$1
+shift
+
+$op "$@"
+