summarylogtreecommitdiffstats
path: root/brother-dcp560cn.install
blob: e7ded80c309d08c265ec4ac45237cf532ae3f6b9 (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
        mkdir -p /var/spool/lpd
	/usr/local/Brother/Printer/dcp560cn/inf/setupPrintcapij dcp560cn -i
	
	# cupswrapper
	/usr/local/Brother/Printer/dcp560cn/cupswrapper/cupswrapperdcp560cn
	
	/usr/bin/systemctl restart org.cups.cupsd.service
}

post_upgrade() {
	/bin/true
}

pre_remove() {
	# lpr
	/usr/local/Brother/Printer/dcp560cn/inf/setupPrintcapij dcp560cn -e
	
	# cupswrapper
	/usr/local/Brother/Printer/dcp560cn/cupswrapper/cupswrapperdcp560cn -e
}

op=$1
shift

$op "$@"