post_install() {
	# lpr
	/opt/brother/Printers/dcpj925dw/inf/setupPrintcapij dcpj925dw -i
	
	# cupswrapper
	/opt/brother/Printers/dcpj925dw/cupswrapper/cupswrapperdcpj925dw
	
	systemctl restart org.cups.cupsd.service
}

post_upgrade() {
	/bin/true
}

pre_remove() {
	# lpr
	/opt/brother/Printers/dcpj925dw/inf/setupPrintcapij dcpj925dw -e
	
	# cupswrapper
	/opt/brother/Printers/dcpj925dw/cupswrapper/cupswrapperdcpj925dw -e
}

op=$1
shift

$op "$@"

