summarylogtreecommitdiffstats
path: root/brother-dcpt300.install
blob: 9c9bab6162b9f11dd7215ea0f5e3efce23948d43 (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
27
post_install() {
	# lpr
	/opt/brother/Printers/dcpt300/inf/setupPrintcapij dcpt300 -i
	
	# cupswrapper
	/opt/brother/Printers/dcpt300/cupswrapper/cupswrapperdcpt300
	
	systemctl restart cups.service
}

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"