diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-10-05 18:20:53 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-10-05 18:20:53 +0000 |
commit | d00378f5142ec27d98d138730c59cc180c9ab850 (patch) | |
tree | d0b88e7424a9d06462f2ed3a7b8ffa823f3efdd7 | |
parent | ffd19724a14510bc5fe0490c5e46656eb3f57216 (diff) | |
download | draklive-install-d00378f5142ec27d98d138730c59cc180c9ab850.tar draklive-install-d00378f5142ec27d98d138730c59cc180c9ab850.tar.gz draklive-install-d00378f5142ec27d98d138730c59cc180c9ab850.tar.bz2 draklive-install-d00378f5142ec27d98d138730c59cc180c9ab850.tar.xz draklive-install-d00378f5142ec27d98d138730c59cc180c9ab850.zip |
move "guest" username in a variable
-rwxr-xr-x | draklive-install | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/draklive-install b/draklive-install index a087c66..2c31ea4 100755 --- a/draklive-install +++ b/draklive-install @@ -12,6 +12,8 @@ use common; push @::textdomains, 'draklive-install'; +my $live_user = "guest"; + { use diskdrake::interactive; package diskdrake::interactive; @@ -133,8 +135,8 @@ undef $wait; #- remove unwanted files and packages unlink(map { $::prefix . $_ } '/.autofsck', '/etc/modprobe.d/mandriva-live', - '/home/guest/Desktop/draklive-copy-wizard.desktop', - '/home/guest/Desktop/draklive-install.desktop'); + '/home/' . $live_user . '/Desktop/draklive-copy-wizard.desktop', + '/home/' . $live_user . '/Desktop/draklive-install.desktop'); system('chroot', $::prefix, 'rpm', '-e', 'draklive-install'); #- enable first boot wizard at system boot @@ -149,14 +151,14 @@ TIMEZONE=no NETWORK=yes AUTHENTICATION=yes USERS=yes -USER_RENAME_FROM=guest +USER_RENAME_FROM=$live_user GLX=no )); #- allow mdkonline to be started again unlink('/etc/skel/.MdkOnline/mdkonline', glob('/home/*/.MdkOnline/mdkonline')); -#- unselect guest user in kdm +#- unselect live user in kdm my $kdm_cfg = '/etc/kde/kdm/kdmrc'; update_gnomekderc($::prefix . $kdm_cfg, 'X-:0-Greeter' => (PreselectUser => 'None', DefaultUser => '')) if -f $kdm_cfg; |