diff options
author | doakey3 | 2018-02-20 17:35:09 -0700 |
---|---|---|
committer | doakey3 | 2018-02-20 17:35:09 -0700 |
commit | a607f5ac59e7da0af366ed9ca479b08a2a67a59e (patch) | |
tree | 7888896cf1166549bd335784196b6bf7cf37e860 | |
parent | 99772a6390a5d50bbfe4e5b8df7a38152d0c59a4 (diff) | |
download | aur-a607f5ac59e7da0af366ed9ca479b08a2a67a59e.tar.gz |
install w/CUPS if printer plugged in, prompt user if not
-rw-r--r-- | brother-pj723.install | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/brother-pj723.install b/brother-pj723.install index 7e83ad8b1ed0..91442f2dfc1e 100644 --- a/brother-pj723.install +++ b/brother-pj723.install @@ -1,12 +1,17 @@ post_install() { __port2="$(lpinfo -v | grep -i 'usb://Brother/PJ-723' | head -1)" if [ "$__port2" = '' ];then - __port2="$(sudo lpinfo -v | grep 'usb://' | head -1)" + echo "You can now register your new printer using the web interface at:" + echo " http://localhost:631/" + exit 0 fi + __port="$(echo $__port2| sed s/direct//g)" if [ "$__port" = '' ];then - __port="usb:/dev/usb/lp0" + echo "You can now register your new printer using the web interface at:" + echo " http://localhost:631/" + exit 0 fi lpadmin -p Brother_PJ-723 -E -v $__port -P /usr/share/ppd/Brother/brother_pj723_printer_en.ppd |