summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakTermServ
diff options
context:
space:
mode:
authorStew Benedict <stewb@mandriva.org>2004-05-20 22:43:34 +0000
committerStew Benedict <stewb@mandriva.org>2004-05-20 22:43:34 +0000
commit63cc60760146cea0a89b5b3c59cbdb2abbd7679a (patch)
tree687042ce212e3e70c8783c36079759542239b23d /perl-install/standalone/drakTermServ
parent9252df76f5eeb3b655b571beb51c17f59b633b5c (diff)
downloaddrakx-backup-do-not-use-63cc60760146cea0a89b5b3c59cbdb2abbd7679a.tar
drakx-backup-do-not-use-63cc60760146cea0a89b5b3c59cbdb2abbd7679a.tar.gz
drakx-backup-do-not-use-63cc60760146cea0a89b5b3c59cbdb2abbd7679a.tar.bz2
drakx-backup-do-not-use-63cc60760146cea0a89b5b3c59cbdb2abbd7679a.tar.xz
drakx-backup-do-not-use-63cc60760146cea0a89b5b3c59cbdb2abbd7679a.zip
Add /etc/modprobe* mount points for client hardware config.
Diffstat (limited to 'perl-install/standalone/drakTermServ')
-rwxr-xr-xperl-install/standalone/drakTermServ6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/standalone/drakTermServ b/perl-install/standalone/drakTermServ
index 9f3b5bfcc..7282680b7 100755
--- a/perl-install/standalone/drakTermServ
+++ b/perl-install/standalone/drakTermServ
@@ -1960,11 +1960,15 @@ sub client_hdw_config {
cp_af('/etc/X11/XF86Config-4$$CLIENT$$', "/etc/X11/XF86Config-4$suffix") if -f '/etc/X11/XF86Config-4$$CLIENT$$';
cp_af("/dev/null", "/etc/modules.conf$suffix");
cp_af("/dev/null", "/etc/modules$suffix");
+ cp_af("/dev/null", "/etc/modprobe.conf$suffix");
+ cp_af("/dev/null", "/etc/modprobe.preload$suffix");
# create mount points so they can be edited by the client
my $mnt_access = "$client_ip(rw,no_root_squash)";
append_to_file("/etc/exports", "/etc/sysconfig/mouse$suffix\t$mnt_access\n");
append_to_file("/etc/exports", "/etc/modules.conf$suffix\t$mnt_access\n");
append_to_file("/etc/exports", "/etc/modules$suffix\t$mnt_access\n");
+ append_to_file("/etc/exports", "/etc/modprobe.conf$suffix\t$mnt_access\n");
+ append_to_file("/etc/exports", "/etc/modprobe.preload$suffix\t$mnt_access\n");
append_to_file("/etc/exports", "/etc/X11/XF86Config$suffix\t$mnt_access\n");
append_to_file("/etc/exports", "/etc/X11/XF86Config-4$suffix\t$mnt_access\n");
} else {
@@ -2005,6 +2009,8 @@ sub clean_client_config {
eval { rm_rf("/etc/sysconfig/mouse$suffix") };
eval { rm_rf("/etc/modules.conf$suffix") };
eval { rm_rf("/etc/modules$suffix") };
+ eval { rm_rf("/etc/modprobe.conf$suffix") };
+ eval { rm_rf("/etc/modprobe.preload$suffix") };
eval { rm_rf("/etc/X11/XF86Config$suffix") };
eval { rm_rf("/etc/X11/XF86Config-4$suffix") };
eval { rm_rf("/etc/sysconfig/network$suffix") };