summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/finish-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-25 14:13:21 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-25 14:13:21 +0000
commit32c3725a08462a65b695ae7d47c01be1265fda83 (patch)
tree48fd7bafc5973585a22c2530831eed87c903e3dd /perl-install/standalone/finish-install
parentdb8553711b45de5c75c84f0922bb6ec66b9368d4 (diff)
downloaddrakx-32c3725a08462a65b695ae7d47c01be1265fda83.tar
drakx-32c3725a08462a65b695ae7d47c01be1265fda83.tar.gz
drakx-32c3725a08462a65b695ae7d47c01be1265fda83.tar.bz2
drakx-32c3725a08462a65b695ae7d47c01be1265fda83.tar.xz
drakx-32c3725a08462a65b695ae7d47c01be1265fda83.zip
add finit support in finish-install
Diffstat (limited to 'perl-install/standalone/finish-install')
-rwxr-xr-xperl-install/standalone/finish-install5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/standalone/finish-install b/perl-install/standalone/finish-install
index 504399611..2f2317068 100755
--- a/perl-install/standalone/finish-install
+++ b/perl-install/standalone/finish-install
@@ -147,6 +147,11 @@ sub ask_users() {
any::add_users($users, $authentication);
any::set_autologin($in->do_pkgs, $users->[0]{name}, $autologin_first)
if $autologin_first;
+ my $finit_conf = "/etc/finit.conf";
+ substInFile {
+ s/^user .*//;
+ $_ .= "user $users->[0]{name}\n" if eof;
+ } $finit_conf if -e $finit_conf;
if ($old_user) {
#- replace home path in user config files
my $old_home = "/home/$old_user";