diff options
Diffstat (limited to 'brother-dcp350c.install')
-rw-r--r-- | brother-dcp350c.install | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/brother-dcp350c.install b/brother-dcp350c.install new file mode 100644 index 000000000000..8cce165af798 --- /dev/null +++ b/brother-dcp350c.install @@ -0,0 +1,33 @@ +post_install() { + __port2=`lpinfo -v | grep -i 'usb://Brother/DCP-350C' | head -1` + if [ "$__port2" = '' ];then + __port2=`lpinfo -v | grep 'usb://' | head -1` + fi + __port=`echo $__port2| sed s/direct//g` + if [ "$__port" = '' ];then + __port="usb:/dev/usb/lp0" + fi + + lpadmin -p DCP350C -E -v $__port -P /usr/share/cups/model/brdcp350c.ppd + echo "If CUPS is not running now, start it after installation" + echo "and type command:" + echo " lpadmin -p DCP350C -E -v URL -P /usr/share/cups/model/brdcp350c.ppd" + echo "where URL can be found using command:" + echo " lpinfo -v | grep -i 'Brother'" + echo "You can also register new printer using web interface at:" + echo " http://localhost:631/" +} + +post_upgrade() { + /bin/true +} + +pre_remove() { + lpadmin -x DCP350C +} + + +op=$1 +shift + +$op "$@" |