updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / brother-mfc210c-cupswrapper / brother-mfc210c-cupswrapper.install
blob4f1bc18c80f4a0829203ea129d6422d67cc7f200
1 post_install(){
2         /usr/share/brother/cupswrapper/cupswrapperMFC210C-1.0.2
5 post_upgrade(){
6         _ppd_file=$(grep -l 'ModelName: "Brother MFC-210C"' /etc/cups/ppd/* | grep MFC210C.ppd)
8         /usr/share/brother/cupswrapper/cupswrapperMFC210C-1.0.2
9         
10         if [ "$_ppd_file" == "" ]; then
11                 lpadmin -x MFC210C
12         fi
16 pre_remove() {
17         /usr/share/brother/cupswrapper/cupswrapperMFC210C-1.0.2 -e
18         rm -f /usr/lib/cups/filter/brlpdwrapperMFC210C