diff options
author | Martin Zecher | 2017-09-03 18:30:55 -0300 |
---|---|---|
committer | Martin Zecher | 2017-09-03 18:30:55 -0300 |
commit | b4daab0c6bfabde8bbb9c333324cdd24ad0a0330 (patch) | |
tree | f30101dd025e18322804c6fab9139c68329a36e9 /brother-dcpt300.install | |
download | aur-b4daab0c6bfabde8bbb9c333324cdd24ad0a0330.tar.gz |
first version
Diffstat (limited to 'brother-dcpt300.install')
-rw-r--r-- | brother-dcpt300.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/brother-dcpt300.install b/brother-dcpt300.install new file mode 100644 index 000000000000..e5d01956cfb4 --- /dev/null +++ b/brother-dcpt300.install @@ -0,0 +1,27 @@ +post_install() { + # lpr + /opt/brother/Printers/dcpt300/inf/setupPrintcapij dcpt300 -i + + # cupswrapper + /opt/brother/Printers/dcpt300/cupswrapper/cupswrapperdcpt300 + + systemctl restart org.cups.cupsd.service +} + +post_upgrade() { + /bin/true +} + +pre_remove() { + # lpr + /opt/brother/Printers/dcpt300/inf/setupPrintcapij dcpt300 -e + + # cupswrapper + /opt/brother/Printers/dcpt300/cupswrapper/cupswrapperdcpt300 -e +} + +op=$1 +shift + +$op "$@" + |