summarylogtreecommitdiffstats
path: root/brother-dcpj1200w.install
blob: df239978d96abccafe5e595fa848ff31f9851885 (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
28
post_install() {
	mkdir -p $pkgdir/var/spool/lpd

	# lpr
	/opt/brother/Printers/dcpj1200w/inf/setupPrintcapij dcpj1200w -i
	
	# cupswrapper
	/opt/brother/Printers/dcpj1200w/cupswrapper/cupswrapperdcpj1200w
	
	systemctl restart org.cups.cupsd.service
}

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"