summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-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;