4 _port=`lpinfo -v | grep -i 'usb://Brother/' | head -1 | sed 's/direct //g'`
6 if [ "$_port" = '' ];then
7 _port="usb:/dev/usb/lp0"
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/"