summarylogtreecommitdiffstats
path: root/brother-dcpj772dw.install
blob: 0881d3ccfb79ce06ef251483fa02f2526e0e1f05 (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/dcpj772dw/inf/setupPrintcapij dcpj772dw -i

  # cupswrapper
  /opt/brother/Printers/dcpj772dw/cupswrapper/cupswrapperdcpj772dw

  systemctl restart cups.service
}

post_upgrade() {
  /bin/true
}

pre_remove() {
  # lpr
  /opt/brother/Printers/dcpj772dw/inf/setupPrintcapij dcpj772dw -e

  # cupswrapper
  /opt/brother/Printers/dcpj772dw/cupswrapper/cupswrapperdcpj772dw -e
}

op=$1
shift

$op "$@"