diff options
author | Adam Nych | 2021-08-05 19:22:14 +0200 |
---|---|---|
committer | Adam Nych | 2021-08-05 19:22:14 +0200 |
commit | dbeacf7288ec86f8549e770acc39ee464120a3ed (patch) | |
tree | fc20d1f91b164902f33f4bf3a8cdec78b07a8e2c /brother-dcpj100.install | |
download | aur-dbeacf7288ec86f8549e770acc39ee464120a3ed.tar.gz |
Initilize the package
Diffstat (limited to 'brother-dcpj100.install')
-rw-r--r-- | brother-dcpj100.install | 27 |
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 "$@" + |