summarylogtreecommitdiffstats
path: root/brother-mfc7320-lpr.install
diff options
context:
space:
mode:
authorRaphaël Doursenaud2015-07-05 17:58:09 +0200
committerRaphaël Doursenaud2015-07-05 17:58:09 +0200
commit196248ac6802f8f14fe95e578b9626f612b47624 (patch)
treeb9b2a69bf96a9d75aaed45b89ca54d034961113a /brother-mfc7320-lpr.install
downloadaur-brother-mfc7320-lpr.tar.gz
Initial import
Diffstat (limited to 'brother-mfc7320-lpr.install')
-rw-r--r--brother-mfc7320-lpr.install29
1 files changed, 29 insertions, 0 deletions
diff --git a/brother-mfc7320-lpr.install b/brother-mfc7320-lpr.install
new file mode 100644
index 000000000000..fec018c3ab21
--- /dev/null
+++ b/brother-mfc7320-lpr.install
@@ -0,0 +1,29 @@
+MODEL=MFC7320
+
+post_install() {
+ /usr/share/brother/inf/setupPrintcap $MODEL -i USB
+ /usr/share/brother/inf/braddprinter -i $MODEL
+ if [ -d /usr/lib32 ];then
+ ln -s /usr/lib/libbrcomplpr2.so /usr/lib32/libbrcomplpr2.so
+ fi
+}
+
+post_upgrade() {
+ /bin/true
+}
+
+pre_remove() {
+ /usr/share/brother/inf/setupPrintcap $MODEL -e USB
+ /usr/share/brother/inf/braddprinter -e $MODEL
+ rm -fR /var/spool/lpd/$MODEL/*
+ if [ -d /usr/lib32 ];then
+ rm -f /usr/lib32/libbrcomplpr2.so
+ fi
+}
+
+
+op=$1
+shift
+
+$op "$@"
+