diff options
author | Simon Lackerbauer | 2015-12-02 13:30:20 +0100 |
---|---|---|
committer | Simon Lackerbauer | 2015-12-02 13:30:20 +0100 |
commit | c7206e88aa329d140ad2ca7a97ff144cbaf084f3 (patch) | |
tree | 74bea18c5aae6311edb26a41838c99247dc2f424 /brother-mfc-l2700dn.install | |
parent | 0976d040aa03ecd3ce00bee24ae4d2b4130a7061 (diff) | |
download | aur-c7206e88aa329d140ad2ca7a97ff144cbaf084f3.tar.gz |
add removal of created symbolic links
Diffstat (limited to 'brother-mfc-l2700dn.install')
-rw-r--r-- | brother-mfc-l2700dn.install | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/brother-mfc-l2700dn.install b/brother-mfc-l2700dn.install index b8187cdf71f2..10cd082412a8 100644 --- a/brother-mfc-l2700dn.install +++ b/brother-mfc-l2700dn.install @@ -3,9 +3,18 @@ post_install() { } post_upgrade() { - sudo ln -sf /opt/brother/Printers/MFCL2700DN/cupswrapper/brother_lpdwrapper_MFCL2700DN /usr/lib/cups/filter/ - sudo ln -sf /opt/brother/Printers/MFCL2700DN/cupswrapper/brother-MFCL2700DN-cups-en.ppd /usr/share/ppd/cupsfilters/ + 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 +} |