summaryrefslogtreecommitdiffstats
path: root/perl-install/printer/printerdrake.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/printer/printerdrake.pm')
-rw-r--r--perl-install/printer/printerdrake.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/perl-install/printer/printerdrake.pm b/perl-install/printer/printerdrake.pm
index f7f22598e..3ddf80239 100644
--- a/perl-install/printer/printerdrake.pm
+++ b/perl-install/printer/printerdrake.pm
@@ -3372,6 +3372,22 @@ sub get_printer_info {
# This is needed to have the device not blocked by the
# spooler backend.
$printer->{currentqueue}{connect} = 'file:/dev/null';
+ } elsif (($printer->{currentqueue}{driver} =~
+ m!^\s*capt\s*$!) ||
+ ($printer->{currentqueue}{ppd} &&
+ ($printer->{currentqueue}{ppd} =~
+ m!Canon-LBP-\d*-capt.ppd!))) {
+ # Check whether printer is on USB
+ if ($printer->{currentqueue}{connect} !~
+ m!^\s*(usb):!) {
+ $::noX ||
+ $in->ask_warn(N("Canon LBP-810/1120 (CAPT) configuration"),
+ N("The driver for this printer only supports printers locally connected via USB, no printers on remote machines or print server boxes or on the parallel port. Please connect your printer to the USB or configure it on the machine where it is directly connected to."));
+ return 0;
+ }
+ # This is needed to have the device not blocked by the
+ # spooler backend.
+ $printer->{currentqueue}{connect} = 'file:/dev/null';
} elsif ($printer->{currentqueue}{printer} eq 'HP-LaserJet_1000') {
$in->ask_warn(N("Firmware-Upload for HP LaserJet 1000"),
$hp1000fwtext);
;bsd"; # case $release in # 0.*) state="ancient";; # 1.0*) state="ancient";; # 1.1*) state="known"; ksrc="netbsd-1.1";; # 1.2*) state="known"; ksrc="netbsd-1.2"; makext="netbsd-1.2";; # 1.[3-9]*|[2-9]*) # state="late"; ksrc="netbsd-1.2";; # esac;; # ULTRIX) # makext="ultrix"; # case $release in # [0-3]*) state="ancient";; # 4.[01]*) state="early"; ksrc="ultrix";; # 4.[234]) state="known"; ksrc="ultrix";; # esac;; # OSF1) # makext="osf"; # case $release in # V1.*) state="neolithic"; ksrc="osf1";; # V[23].*) state="neolithic"; ksrc="osf1";; # V4.*) state="known"; ksrc="osf1";; # V[5-9]*) state="late"; ksrc="osf1";; # esac;; # FreeBSD) # makext="bsd"; # case $release in # 1.*) state="known"; ksrc="freebsd-old";; # 2.[01]*) state="known"; ksrc="freebsd-2.0";; # 2.2.[2-7]*) state="late"; ksrc="freebsd-2.0";; # 2.2.8*) state="known"; ksrc="freebsd-2.2.8";; # 3.[0-1]*) state="known"; ksrc="freebsd-3.0";; # esac;; # NeXTStep) # makext="NeXT"; # ksrc="NeXT"; # state="known";; # SINIX-?) # case $release in # 5.4[01]) state=known; ksrc=svr4; makext=svr4;; # 5.4[2-9]) state=late; ksrc=svr4; makext=svr4;; # esac;; # # Intel SVR4 systems come with a bug in the uname program. Unless # # your provider fixed the bug, or you get a fix for it, uname -S will # # overwrite the system name with the node name! # UNIX_SV|UNIX_System_V|`uname -n`) # case $release in # 4.0) state=known; ksrc=svr4; makext=svr4;; # 4.2) state=late; ksrc=svr4; makext=svr4;; # esac;; esac if [ -d "$ksrc" ]; then :; else state="notincluded" unset ksrc fi case $state in neolithic) echo "This is a newer release on an outdated OS ($system)." echo " This software may or may not work on this OS." echo " You may want to download an older version of PPP for this OS.";; ancient) echo "This is an old release of a supported OS ($system)." echo "This software cannot be used as-is on this system," echo "but you may be able to port it. Good luck!" exit;; early) echo "This is an old release of a supported OS ($system)."