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

  # cupswrapper
  /opt/brother/Printers/dcpj582n/cupswrapper/cupswrapperdcpj582n

  systemctl restart org.cups.cupsd.service
}

post_upgrade() {
  /bin/true
}

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

  # cupswrapper
  /opt/brother/Printers/dcpj582n/cupswrapper/cupswrapperdcpj582n -e
}

op=$1
shift

$op "$@"