From 8ebe5a9c68e0e7ee3c90bee2d662d1528b085f76 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 25 Feb 2009 14:14:14 +0000 Subject: give console rights for current session when renaming user in finish-install --- perl-install/standalone/finish-install | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perl-install/standalone/finish-install') 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; } } -- cgit v1.2.1