summarylogtreecommitdiffstats
path: root/brother-dcpj968n.install
blob: c21626df54b9cb5d2179cdba0e9f71d4afc98fe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
post_install() {
	# lpr
	/opt/brother/Printers/dcpj968n/inf/setupPrintcapij dcpj968n -i
	
	# cupswrapper
	/opt/brother/Printers/dcpj968n/cupswrapper/cupswrapperdcpj968n
	
	systemctl restart org.cups.cupsd.service
}

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"