updated on Sun Jan 22 08:00:21 UTC 2012
[aur-mirror.git] / brother-hl2150n / brother-hl2150n.install
blob6a147d592dfe7350ef10fd38f0cc0debdb4d0623
1 MODEL=HL2150N
3 post_install() {
4   _port=`lpinfo -v | grep -i 'usb://Brother/' | head -1 | sed 's/direct //g'`
6   if [ "$_port" = '' ];then
7           _port="usb:/dev/usb/lp0"
8   fi
10 #  lpadmin -p $MODEL -E -v $_port -P /usr/share/cups/model/$MODEL.ppd
11   echo "Start CUPS after installation and type command:" 
12   echo "  lpadmin -p $MODEL -E -v URL -P /usr/share/cups/model/$MODEL.ppd"
13   echo "where URL can be found using command:"
14   echo "  lpinfo -v | grep -i 'Brother'"
15   echo "You can also register new printer using web interface at:"
16   echo "  http://localhost:631/"
19 post_upgrade() {
20   /bin/true
23 pre_remove() {
24   lpadmin -x $MODEL
28 op=$1
29 shift
31 $op "$@"