summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-02 17:42:22 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-02 17:42:22 +0000
commitbe424605afddcf72cd58fcc36f492f89162bc618 (patch)
tree25bd2fbdbe311f49726a9e370b1292a6d21ecbbc /perl-install/any.pm
parenta7c0d928abbfe9c843d1e23b6d40e5070770c577 (diff)
downloaddrakx-be424605afddcf72cd58fcc36f492f89162bc618.tar
drakx-be424605afddcf72cd58fcc36f492f89162bc618.tar.gz
drakx-be424605afddcf72cd58fcc36f492f89162bc618.tar.bz2
drakx-be424605afddcf72cd58fcc36f492f89162bc618.tar.xz
drakx-be424605afddcf72cd58fcc36f492f89162bc618.zip
use $::prefix
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm22
1 files changed, 11 insertions, 11 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 9d703befe..3cded4dc1 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -358,25 +358,25 @@ sub pack_passwd {
}
sub get_autologin {
- my ($prefix, $o) = @_;
- my %l = getVarsFromSh("$prefix/etc/sysconfig/autologin");
+ my ($o) = @_;
+ my %l = getVarsFromSh("$::prefix/etc/sysconfig/autologin");
$o->{autologin} ||= text2bool($l{AUTOLOGIN}) && $l{USER};
- %l = getVarsFromSh("$prefix/etc/sysconfig/desktop");
+ %l = getVarsFromSh("$::prefix/etc/sysconfig/desktop");
$o->{desktop} ||= $l{DESKTOP};
}
sub set_autologin {
- my ($prefix, $user, $desktop) = @_;
+ my ($user, $desktop) = @_;
if ($user) {
- my %l = getVarsFromSh("$prefix/etc/sysconfig/desktop");
+ my %l = getVarsFromSh("$::prefix/etc/sysconfig/desktop");
$l{DESKTOP} = $desktop;
- setVarsInSh("$prefix/etc/sysconfig/desktop", \%l);
- log::l("cat $prefix/etc/sysconfig/desktop ($desktop):\n", cat_("$prefix/etc/sysconfig/desktop"));
+ setVarsInSh("$::prefix/etc/sysconfig/desktop", \%l);
+ log::l("cat $::prefix/etc/sysconfig/desktop ($desktop):\n", cat_("$::prefix/etc/sysconfig/desktop"));
}
- setVarsInSh("$prefix/etc/sysconfig/autologin",
+ setVarsInSh("$::prefix/etc/sysconfig/autologin",
{ USER => $user, AUTOLOGIN => bool2yesno($user), EXEC => "/usr/X11R6/bin/startx" });
- log::l("cat $prefix/etc/sysconfig/autologin ($user):\n", cat_("$prefix/etc/sysconfig/autologin"));
+ log::l("cat $::prefix/etc/sysconfig/autologin ($user):\n", cat_("$::prefix/etc/sysconfig/autologin"));
}
sub rotate_log {
@@ -800,9 +800,9 @@ sub ask_users {
}
sub autologin {
- my ($prefix, $o, $in) = @_;
+ my ($o, $in) = @_;
- my @wm = split(' ', run_program::rooted_get_stdout($prefix, '/usr/sbin/chksession', '-l'));
+ my @wm = split(' ', run_program::rooted_get_stdout($::prefix, '/usr/sbin/chksession', '-l'));
my @users = map { $_->{name} } @{$o->{users} || []};
if (@wm > 1 && @users && !$o->{authentication}{NIS} && $o->{security} <= 2) {