updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / brother-mfc7440n / brother-mfc7440n.install
blobdbce59fcf8728c363f28c7caf379240fa4093d1d
1 MODEL=MFC7440N
3 post_install() {
4   _port=`lpinfo -v | grep network | grep BRN | head -1 | sed 's/network //g'`
5   if [ "$_port" = '' ]; then
6       _port=`lpinfo -v | grep -i 'usb://Brother/' | head -1 | sed 's/direct //g'`
8       if [ "$_port" = '' ];then
9               _port="usb:/dev/usb/lp0"
10       fi
11   fi
12 #  lpadmin -p $MODEL -E -v $_port -P /usr/share/cups/model/$MODEL.ppd
13   echo "Start CUPS after installation and type command:" 
14   echo "  lpadmin -p $MODEL -E -v URL -P /usr/share/cups/model/$MODEL.ppd"
15   echo "where URL can be found using command:"
16   echo "  lpinfo -v | grep -i 'Brother'"
17   echo "You can also register new printer using web interface at:"
18   echo "  http://localhost:631/"
21 post_upgrade() {
22   /bin/true
25 pre_remove() {
26   lpadmin -x $MODEL
30 op=$1
31 shift
33 $op "$@"