summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakTermServ
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2004-03-04 00:25:54 +0000
committerStew Benedict <stewb@mandriva.org>2004-03-04 00:25:54 +0000
commit838f30a2f2097f16b34ac216bcf839b8fe4c8c24 (patch)
tree4f70db91084f5b964663b56909cc4c4cd609a36b /perl-install/standalone/drakTermServ
parent1bf6631a80790d056e0a821fe455cb280633b029 (diff)
downloaddrakx-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/drakTermServ')
-rwxr-xr-xperl-install/standalone/drakTermServ3
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;
}