summarylogtreecommitdiffstats
path: root/brother-pj723.install
diff options
context:
space:
mode:
Diffstat (limited to 'brother-pj723.install')
-rw-r--r--brother-pj723.install9
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