diff options
author | Stew Benedict <stewb@mandriva.org> | 2004-03-04 00:25:54 +0000 |
---|---|---|
committer | Stew Benedict <stewb@mandriva.org> | 2004-03-04 00:25:54 +0000 |
commit | 838f30a2f2097f16b34ac216bcf839b8fe4c8c24 (patch) | |
tree | 4f70db91084f5b964663b56909cc4c4cd609a36b /perl-install/standalone | |
parent | 1bf6631a80790d056e0a821fe455cb280633b029 (diff) | |
download | drakx-838f30a2f2097f16b34ac216bcf839b8fe4c8c24.tar drakx-838f30a2f2097f16b34ac216bcf839b8fe4c8c24.tar.gz drakx-838f30a2f2097f16b34ac216bcf839b8fe4c8c24.tar.bz2 drakx-838f30a2f2097f16b34ac216bcf839b8fe4c8c24.tar.xz drakx-838f30a2f2097f16b34ac216bcf839b8fe4c8c24.zip |
Don't destroy "fat" client inittab.
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/drakTermServ | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/drakTermServ b/perl-install/standalone/drakTermServ index 846ea3cd6..673447217 100755 --- a/perl-install/standalone/drakTermServ +++ b/perl-install/standalone/drakTermServ @@ -1136,6 +1136,7 @@ sub client_set { if ($default eq "all") { my $inittab = '/etc/initab$$CLIENT$$'; $in->ask_warn(N("Warning"), N("All clients will use %s", $inittab)); + `mv '/etc/inittab\$\$CLIENT\$\$' '/etc/inittab\$\$CLIENT\$\$.fat'` if -f '/etc/inittab$$CLIENT$$';; write_thin_inittab("CLIENT"); } } else { @@ -1149,7 +1150,7 @@ sub client_set { change_gdm_xdmcp("false"); log::explanations("Modified files /etc/inittab, /etc/X11/xdm/xdm-config, /usr/share/config/kdm/kdmrc, /etc/X11/gdm/gdm.conf"); update_hosts_allow("disable"); - rm_rf('/etc/inittab$$CLIENT$$') if $default eq "all"; + `mv '/etc/inittab\$\$CLIENT\$\$.fat' '/etc/inittab\$\$CLIENT\$\$'` if $default eq "all" && -f '/etc/inittab$$CLIENT$$.fat'; } $clients_set = 1; } |