summarylogtreecommitdiffstats
path: root/brother-dcpj1140dw.install
blob: 31ee7b6dce7f0d9f340c01f8ea39e8fb3755fc0f (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 dcpj1140dw -i
	
	# cupswrapper
	/opt/brother/Printers/dcpj1200w/cupswrapper/cupswrapperdcpj1140dw
	
	systemctl restart cups.service
}

post_upgrade() {
	/bin/true
}

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

op=$1
shift

$op "$@"