diff options
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 00000000000..54d05408cec --- /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 "$@" + |