summarylogtreecommitdiffstats
path: root/brother-dcpt700w.install
diff options
context:
space:
mode:
authorFabioLolix2017-11-05 02:47:03 +0100
committerFabioLolix2017-11-05 02:47:03 +0100
commitc7dff766c15f655a94a027453806cb5eb06cb3ce (patch)
treeefab8bc9347c3103b25388b38c4c865fb4c1c8ea /brother-dcpt700w.install
downloadaur-c7dff766c15f655a94a027453806cb5eb06cb3ce.tar.gz
Initial commit
Diffstat (limited to 'brother-dcpt700w.install')
-rw-r--r--brother-dcpt700w.install27
1 files changed, 27 insertions, 0 deletions
diff --git a/brother-dcpt700w.install b/brother-dcpt700w.install
new file mode 100644
index 000000000000..ed48e791bf5f
--- /dev/null
+++ b/brother-dcpt700w.install
@@ -0,0 +1,27 @@
+post_install() {
+ # lpr
+ /opt/brother/Printers/dcpt700w/inf/setupPrintcapij dcpt700w -i
+
+ # cupswrapper
+ /opt/brother/Printers/dcpt700w/cupswrapper/cupswrapperdcpt700w
+
+ systemctl restart org.cups.cupsd.service
+}
+
+post_upgrade() {
+ /bin/true
+}
+
+pre_remove() {
+ # lpr
+ /opt/brother/Printers/dcpt700w/inf/setupPrintcapij dcpt700w -e
+
+ # cupswrapper
+ /opt/brother/Printers/dcpt700w/cupswrapper/cupswrapperdcpt700w -e
+}
+
+op=$1
+shift
+
+$op "$@"
+