summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-02-25 14:17:46 +0000
committerOlivier Blin <oblin@mandriva.com>2009-02-25 14:17:46 +0000
commit37188a3cad116af66aacfc46bfa809987236e8fe (patch)
treea1ff2b3b125932738a2cb09d0daf0f7735d2c070 /perl-install
parente8d8503b1ac5a9d48d0e6bf0dd192cd37114731d (diff)
downloaddrakx-backup-do-not-use-37188a3cad116af66aacfc46bfa809987236e8fe.tar
drakx-backup-do-not-use-37188a3cad116af66aacfc46bfa809987236e8fe.tar.gz
drakx-backup-do-not-use-37188a3cad116af66aacfc46bfa809987236e8fe.tar.bz2
drakx-backup-do-not-use-37188a3cad116af66aacfc46bfa809987236e8fe.tar.xz
drakx-backup-do-not-use-37188a3cad116af66aacfc46bfa809987236e8fe.zip
give console rights for current session when renaming user in finish-install (backport from trunk)
Diffstat (limited to 'perl-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 6cd64c304..fe1886889 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.71.8 - 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;
}
}