blob: d76499a308ce7d3adb52f37f3d959a4d57165a74 (
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/dcp365cn/inf/setupPrintcapij dcp365cn -i
# cupswrapper
/opt/brother/Printers/dcp365cn/cupswrapper/cupswrapperdcp365cn
systemctl restart cups.service
}
post_upgrade() {
/bin/true
}
pre_remove() {
# lpr
/opt/brother/Printers/dcp365cn/inf/setupPrintcapij dcp365cn -e
# cupswrapper
/opt/brother/Printers/dcp365cn/cupswrapper/cupswrapperdcp365cn -e
}
op=$1
shift
$op "$@"
|