summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 0b7debaf8..b61cb2849 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -880,8 +880,8 @@ sub set_login_serial_console {
sub runlevel {
- my ($prefix, $runlevel) = @_;
- my $f = "$prefix/etc/inittab";
+ my ($runlevel) = @_;
+ my $f = "$::prefix/etc/inittab";
-r $f or log::l("missing inittab!!!"), return;
if ($runlevel) {
substInFile { s/^id:\d:initdefault:\s*$/id:$runlevel:initdefault:\n/ } $f if !$::testing;