summaryrefslogtreecommitdiffstats
path: root/perl-install/printer.pm
diff options
context:
space:
mode:
authorTill Kamppeter <tkamppeter@mandriva.com>2002-02-12 16:29:26 +0000
committerTill Kamppeter <tkamppeter@mandriva.com>2002-02-12 16:29:26 +0000
commitabfb017114bc8cc9dbabd9787c05ef4922b30196 (patch)
treee3cdc8743571c7bfc753e2d37286709af24a728a /perl-install/printer.pm
parent2d043f4f7f34189f6e5ae668fee10b72073c082e (diff)
downloaddrakx-backup-do-not-use-abfb017114bc8cc9dbabd9787c05ef4922b30196.tar
drakx-backup-do-not-use-abfb017114bc8cc9dbabd9787c05ef4922b30196.tar.gz
drakx-backup-do-not-use-abfb017114bc8cc9dbabd9787c05ef4922b30196.tar.bz2
drakx-backup-do-not-use-abfb017114bc8cc9dbabd9787c05ef4922b30196.tar.xz
drakx-backup-do-not-use-abfb017114bc8cc9dbabd9787c05ef4922b30196.zip
Added forgotten '$prefix'es.
Diffstat (limited to 'perl-install/printer.pm')
-rw-r--r--perl-install/printer.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index 9f606a686..6985a4ddd 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -126,7 +126,7 @@ sub set_permissions {
sub restart_service ($) {
my ($service) = @_;
# Exit silently if the service is not installed
- if (!(-x "/etc/rc.d/init.d/$service")) {
+ if (!(-x "$prefix/etc/rc.d/init.d/$service")) {
return 1;
}
run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "restart");
@@ -144,7 +144,7 @@ sub restart_service ($) {
sub start_service ($) {
my ($service) = @_;
# Exit silently if the service is not installed
- if (!(-x "/etc/rc.d/init.d/$service")) {
+ if (!(-x "$prefix/etc/rc.d/init.d/$service")) {
return 1;
}
run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "start");
@@ -162,7 +162,7 @@ sub start_service ($) {
sub stop_service ($) {
my ($service) = @_;
# Exit silently if the service is not installed
- if (!(-x "/etc/rc.d/init.d/$service")) {
+ if (!(-x "$prefix/etc/rc.d/init.d/$service")) {
return 1;
}
run_program::rooted($prefix, "/etc/rc.d/init.d/$service", "stop");