post_install() { # lpr /opt/brother/Printers/dcpj577n/inf/setupPrintcapij dcpj577n -i # cupswrapper /opt/brother/Printers/dcpj577n/cupswrapper/cupswrapperdcpj577n systemctl restart org.cups.cupsd.service } post_upgrade() { /bin/true } pre_remove() { # lpr /opt/brother/Printers/dcpj577n/inf/setupPrintcapij dcpj577n -e # cupswrapper /opt/brother/Printers/dcpj577n/cupswrapper/cupswrapperdcpj577n -e } op=$1 shift $op "$@"