blob: fec018c3ab21c5a1686f0690021c318abbb3cde1 (
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
28
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 "$@"
|