summarylogtreecommitdiffstats
path: root/brother-mfc-l2700dn.install
blob: 10cd082412a89f08d7bd34fbbecc1e1fe512ab0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
post_install() {
	post_upgrade;
}

post_upgrade() {
  sudo ln -s /opt/brother/Printers/MFCL2700DN/cupswrapper/brother_lpdwrapper_MFCL2700DN /usr/lib/cups/filter/
  sudo ln -s /opt/brother/Printers/MFCL2700DN/cupswrapper/brother-MFCL2700DN-cups-en.ppd /usr/share/ppd/cupsfilters/
  echo "Restart CUPS (sudo systemctl restart org.cups.cupsd.service) to load the new files"
  echo "You can now register your new printer using the web interface at:"
  echo "  http://localhost:631/"
}

pre_upgrade() {
  pre_remove;
}

pre_remove() {
  sudo rm /usr/lib/cups/filter/brother_lpdwrapper_MFCL2700DN
  sudo rm /usr/share/ppd/cupsfilters/brother-MFCL2700DN-cups-en.ppd
}