summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>1999-10-14 15:52:49 +0000
committerFrancois Pons <fpons@mandriva.com>1999-10-14 15:52:49 +0000
commitb99336c5440cb50de9e8ca46833df72415deb723 (patch)
tree488b89ca8ebdbdcb86c4ded06d7e6de766fbf75c /perl-install/install_any.pm
parentd0c9225cfba0d80b3a3652db6376b8474ede0750 (diff)
downloaddrakx-b99336c5440cb50de9e8ca46833df72415deb723.tar
drakx-b99336c5440cb50de9e8ca46833df72415deb723.tar.gz
drakx-b99336c5440cb50de9e8ca46833df72415deb723.tar.bz2
drakx-b99336c5440cb50de9e8ca46833df72415deb723.tar.xz
drakx-b99336c5440cb50de9e8ca46833df72415deb723.zip
*** empty log message ***
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 96cd86be6..7d1929e03 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -247,3 +247,15 @@ sub searchAndMount4Upgrade {
fs::mount_all([ grep { isExt2($_) || isSwap($_) } @{$o->{fstab}} ], $o->{prefix});
}
}
+
+sub write_ldsoconf {
+ my ($prefix) = @_;
+ my $file = "$prefix/etc/ld.so.conf";
+
+ #- write a minimal ld.so.conf file unless it already exists.
+ unless (-s "$file") {
+ local *F;
+ open F, ">$file" or die "unable to open for writing $file";
+ print F "/usr/lib\n";
+ }
+}