summaryrefslogtreecommitdiffstats
path: root/perl-install/printer/services.pm
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2005-10-20 14:05:54 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2005-10-20 14:05:54 +0000
commit89a0b8ea361cfbb76ab7134bbde229ddc26aa385 (patch)
treee76808781669e666500d40c932ed6a3bfdff52ac /perl-install/printer/services.pm
parent427e75a16cb154abb9560314c3e9ea820b2ea072 (diff)
downloaddrakx-backup-do-not-use-89a0b8ea361cfbb76ab7134bbde229ddc26aa385.tar
drakx-backup-do-not-use-89a0b8ea361cfbb76ab7134bbde229ddc26aa385.tar.gz
drakx-backup-do-not-use-89a0b8ea361cfbb76ab7134bbde229ddc26aa385.tar.bz2
drakx-backup-do-not-use-89a0b8ea361cfbb76ab7134bbde229ddc26aa385.tar.xz
drakx-backup-do-not-use-89a0b8ea361cfbb76ab7134bbde229ddc26aa385.zip
- Updated printerdrake to the state of Mandriva 2006:
o HPLIP support o Gutenprint support o support for several other new drivers o Printer communication error handling o Main window of printerdrake comes up faster o Many bug fixes and detail improvements
Diffstat (limited to 'perl-install/printer/services.pm')
-rw-r--r--perl-install/printer/services.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/printer/services.pm b/perl-install/printer/services.pm
index adb2587fe..f94cc5af5 100644
--- a/perl-install/printer/services.pm
+++ b/perl-install/printer/services.pm
@@ -45,7 +45,9 @@ sub wait_for_cups() {
my $cupsready = 0;
my $i;
for ($i = 0; $i < 30; $i++) {
- run_program::rooted($::prefix, "/usr/bin/lpstat", "-r");
+ # Check whether CUPS is running without any console output
+ system(($::testing ? $::prefix : "chroot $::prefix/ ") .
+ "/usr/bin/lpstat -r >/dev/null 2>&1");
if (($? >> 8) != 0) {
# CUPS is not ready, continue
sleep 1;