diff options
Diffstat (limited to 'brother-dcpt520w.install')
-rw-r--r-- | brother-dcpt520w.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/brother-dcpt520w.install b/brother-dcpt520w.install new file mode 100644 index 000000000000..6c0ffbaf50d7 --- /dev/null +++ b/brother-dcpt520w.install @@ -0,0 +1,27 @@ +post_install() { + # lpr + /opt/brother/Printers/dcpt520w/inf/setupPrintcapij dcpt520w -i + + # cupswrapper + /opt/brother/Printers/dcpt520w/cupswrapper/cupswrapperdcpt520w + + systemctl restart org.cups.cups.service +} + +post_upgrade() { + /bin/true +} + +pre_remove() { + # lpr + /opt/brother/Printers/dcpt520w/inf/setupPrintcapij dcpt520w -e + + # cupswrapper + /opt/brother/Printers/dcpt520w/cupswrapper/cupswrapperdcpt520w -e +} + +op=$1 +shift + +$op "$@" + |