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"
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/"