summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-08-10 10:04:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-08-10 10:04:07 +0000
commit23c2f66bb9e8862ef38c90a811fe9b00825111c4 (patch)
treecbeace8b95ac91f58e6c2e9a7c3d4fb97a7ab444 /perl-install/any.pm
parent908701a9a0118e798b4f0bf9b0901a91d3ba9e1e (diff)
downloaddrakx-23c2f66bb9e8862ef38c90a811fe9b00825111c4.tar
drakx-23c2f66bb9e8862ef38c90a811fe9b00825111c4.tar.gz
drakx-23c2f66bb9e8862ef38c90a811fe9b00825111c4.tar.bz2
drakx-23c2f66bb9e8862ef38c90a811fe9b00825111c4.tar.xz
drakx-23c2f66bb9e8862ef38c90a811fe9b00825111c4.zip
create /etc/udev/conf.d/xxx.conf
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 5502bba97..f723435f0 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -811,6 +811,12 @@ UNREGISTER ^$devfs_if\$ CFUNCTION GLOBAL unlink $of
UNREGISTER ^$devfs_if\$ CFUNCTION GLOBAL unlink $if
") if $devfs_if ne $if && $if !~ /^hd[a-z]/ && $if !~ /^sr/ && $if !~ /^sd[a-z]/;
+ {
+ my $f = "$::prefix/etc/udev/conf.d/$of.conf";
+ output_p($f, "ln -sf $if /dev/$of\n");
+ chmod 0755, $f;
+ }
+
#- when creating a symlink on the system, use devfs name if devfs is mounted
symlinkf($devfs_if, "$::prefix/dev/$if") if $devfs_if ne $if && detect_devices::dev_is_devfs();
symlinkf($if, "$::prefix/dev/$of");