summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-25 14:14:14 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-25 14:14:14 +0000
commit8ebe5a9c68e0e7ee3c90bee2d662d1528b085f76 (patch)
tree814bd97599d4aa7213c7cde1b464cc871b95e746
parent32c3725a08462a65b695ae7d47c01be1265fda83 (diff)
downloaddrakx-8ebe5a9c68e0e7ee3c90bee2d662d1528b085f76.tar
drakx-8ebe5a9c68e0e7ee3c90bee2d662d1528b085f76.tar.gz
drakx-8ebe5a9c68e0e7ee3c90bee2d662d1528b085f76.tar.bz2
drakx-8ebe5a9c68e0e7ee3c90bee2d662d1528b085f76.tar.xz
drakx-8ebe5a9c68e0e7ee3c90bee2d662d1528b085f76.zip
give console rights for current session when renaming user in finish-install
-rw-r--r--perl-install/NEWS1
-rwxr-xr-xperl-install/standalone/finish-install3
2 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 00869bcfc..a9f7b232a 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,5 +1,6 @@
- finish-install:
o finit support
+ o give console rights for current session when renaming user
Version 11.91 - 25 February 2009
diff --git a/perl-install/standalone/finish-install b/perl-install/standalone/finish-install
index 2f2317068..d751edeaa 100755
--- a/perl-install/standalone/finish-install
+++ b/perl-install/standalone/finish-install
@@ -157,6 +157,9 @@ sub ask_users() {
my $old_home = "/home/$old_user";
my $new_home = "/home/$users->[0]{name}";
run_program::run(qq(grep -rl $old_home $new_home/.??* | while read f; do perl -pi -e 's,$old_home,$new_home,g' "\$f"; done));
+ #- give console rights for current session
+ my $console_dir = "/var/run/console";
+ cp_f($console_dir . "/" . $old_user, $console_dir . "/" . $users->[0]{name}) if -e $console_dir . "/" . $old_user;
}
}