summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-31 21:34:15 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-31 21:34:15 +0000
commit157a01642c2a988c3308d7d3dd0f8ba36a0cf641 (patch)
tree86a04e7237fba0f1486e92ee7ae89547b9482f64 /perl-install
parenteccec293428b337a73029dce67da2371ff983bec (diff)
downloaddrakx-157a01642c2a988c3308d7d3dd0f8ba36a0cf641.tar
drakx-157a01642c2a988c3308d7d3dd0f8ba36a0cf641.tar.gz
drakx-157a01642c2a988c3308d7d3dd0f8ba36a0cf641.tar.bz2
drakx-157a01642c2a988c3308d7d3dd0f8ba36a0cf641.tar.xz
drakx-157a01642c2a988c3308d7d3dd0f8ba36a0cf641.zip
(devfssymlinkf): when creating a symlink on the system, use devfs name if devfs is mounted
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/any.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 5500f9766..fbafd4da0 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -943,6 +943,9 @@ sub devfssymlinkf {
$devfs_if ||= devices::to_devfs($o_if->{device});
$devfs_if ||= $o_if->{device};
+ #- when creating a symlink on the system, use devfs name if devfs is mounted
+ $if = $devfs_if if !$prefix && detect_devices::dev_is_devfs();
+
symlinkf($if, "$prefix/dev/$of");
output_p("$prefix/etc/devfs/conf.d/$of.conf",