summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-09-06 11:23:28 +0000
committerFrancois Pons <fpons@mandriva.com>2001-09-06 11:23:28 +0000
commit135735c4d87a369c1d1efedb632bc1bc68b49e69 (patch)
tree1dd7eca088fe4f9256fa6e53c8b63fd6c2b2d184
parent917df4eb4d05e28cd3057f5d981ec61d0fde7f60 (diff)
downloaddrakx-135735c4d87a369c1d1efedb632bc1bc68b49e69.tar
drakx-135735c4d87a369c1d1efedb632bc1bc68b49e69.tar.gz
drakx-135735c4d87a369c1d1efedb632bc1bc68b49e69.tar.bz2
drakx-135735c4d87a369c1d1efedb632bc1bc68b49e69.tar.xz
drakx-135735c4d87a369c1d1efedb632bc1bc68b49e69.zip
start ifup lo before starting service cups.
-rw-r--r--perl-install/printer.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index c3f7ae47d..2df24661d 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -108,6 +108,7 @@ sub restart_service ($) {
sub start_service ($) {
my ($service) = @_;
+ run_program::rooted($prefix, "ifconfig lo 127.0.0.1"); #- else cups will not be happy! and ifup lo don't run ?
run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "start")
|| die "Could not start $service!";
}
@@ -656,7 +657,6 @@ sub poll_ppd_base {
#- the file /etc/cups/ppds.dat is no more modified.
#- if cups continue to modify it (because it reads the ppd files available), the
#- poll_ppd_base program simply cores :-)
- run_program::rooted($prefix, "ifconfig lo 127.0.0.1"); #- else cups will not be happy! and ifup lo don't run ?
start_service("cups");
my $driversthere = scalar(keys %thedb);
foreach (1..60) {