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

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"