diff options
author | Eldon Mathias | 2016-02-24 22:26:03 -0600 |
---|---|---|
committer | Eldon Mathias | 2016-02-24 22:26:03 -0600 |
commit | 8c0cedb458d1bf12043eeee2f477c5bf5df9036a (patch) | |
tree | 3cb5fe1a3fecb7b943c936a668797df83b5a8d9c /brother-mfc240c.install | |
download | aur-8c0cedb458d1bf12043eeee2f477c5bf5df9036a.tar.gz |
initial import
Diffstat (limited to 'brother-mfc240c.install')
-rw-r--r-- | brother-mfc240c.install | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/brother-mfc240c.install b/brother-mfc240c.install new file mode 100644 index 000000000000..f0af866b5dfa --- /dev/null +++ b/brother-mfc240c.install @@ -0,0 +1,35 @@ +post_install() { + __port2=`lpinfo -v | grep -i 'usb://Brother/MFC-240C' | 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 MFC240C -E -v $__port -P /usr/share/cups/model/MFC240C.ppd + echo "If CUPS is not running now, start it after installation" + echo "and type command:" + echo " lpadmin -p MFC240C -E -v URL -P /usr/share/cups/model/MFC240C.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 MFC240C +} + + +op=$1 +shift + +$op "$@" + + |