summarylogtreecommitdiffstats
path: root/brother-dcpt700w.install
blob: ed48e791bf5f0cd4d5c4dd6767f192568a84f3e4 (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/dcpt700w/inf/setupPrintcapij dcpt700w -i
	
	# cupswrapper
	/opt/brother/Printers/dcpt700w/cupswrapper/cupswrapperdcpt700w
	
	systemctl restart org.cups.cupsd.service
}

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"