summaryrefslogtreecommitdiffstats
path: root/perl-install/printer.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-09-29 16:49:51 +0000
committerFrancois Pons <fpons@mandriva.com>2000-09-29 16:49:51 +0000
commit0d05432e5549d86203a9677603824923920b10cd (patch)
tree9f1729f99647a3b8b47fad6409ce5914863e2c2f /perl-install/printer.pm
parentec6fb419868416b1c90fcac09e3887d9b68eab99 (diff)
downloaddrakx-0d05432e5549d86203a9677603824923920b10cd.tar
drakx-0d05432e5549d86203a9677603824923920b10cd.tar.gz
drakx-0d05432e5549d86203a9677603824923920b10cd.tar.bz2
drakx-0d05432e5549d86203a9677603824923920b10cd.tar.xz
drakx-0d05432e5549d86203a9677603824923920b10cd.zip
*** empty log message ***
Diffstat (limited to 'perl-install/printer.pm')
-rw-r--r--perl-install/printer.pm22
1 files changed, 11 insertions, 11 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index def53c7d0..d8fd4f19d 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -580,19 +580,19 @@ sub configure_queue($) {
print PRINTCAP "\n";
}
eval { commands::chown_("root.lp", "$prefix/etc/printcap") };
-
- my $useUSB = 0;
- foreach (values %{$entry->{configured}}) {
- $useUSB ||= $_->{DEVICE} =~ /usb/;
- }
- if ($useUSB) {
- my $f = "$prefix/etc/sysconfig/usb";
- my %usb = getVarsFromSh($f);
- $usb{PRINTER} = "yes";
- setVarsInSh($f, \%usb);
- }
last };
}
+
+ my $useUSB = 0;
+ foreach (values %{$entry->{configured}}) {
+ $useUSB ||= $_->{DEVICE} =~ /usb/ || $_->{DeviceURI} =~ /usb/;
+ }
+ if ($useUSB) {
+ my $f = "$prefix/etc/sysconfig/usb";
+ my %usb = getVarsFromSh($f);
+ $usb{PRINTER} = "yes";
+ setVarsInSh($f, \%usb);
+ }
}
#- use the queue currently configured at the top of printer hash.