summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-04-30 12:56:46 +0000
committerOlivier Blin <oblin@mandriva.com>2007-04-30 12:56:46 +0000
commite8a5ead890a33db905cb28b6e34d68f5f8295671 (patch)
tree81212669d204c8f7bf7ded79ef6a2899ce895f07 /perl-install/devices.pm
parenta91a164fb5e43b03e6533d638f14aed01535c8ba (diff)
downloaddrakx-e8a5ead890a33db905cb28b6e34d68f5f8295671.tar
drakx-e8a5ead890a33db905cb28b6e34d68f5f8295671.tar.gz
drakx-e8a5ead890a33db905cb28b6e34d68f5f8295671.tar.bz2
drakx-e8a5ead890a33db905cb28b6e34d68f5f8295671.tar.xz
drakx-e8a5ead890a33db905cb28b6e34d68f5f8295671.zip
create udev nodes configuration file in /etc/udev/devices.d/ instead of conf.d (used for modem and mouse)
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r--perl-install/devices.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index 61c5b18dd..197127cd0 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -208,9 +208,8 @@ sub symlink_now_and_register {
my $if = $if_struct->{device};
#- add a specific udev script, we can't do it with a udev rule,
- #- eg, ttySL0 is a symlink
- output_with_perm("$::prefix/etc/udev/conf.d/$of.conf", 0755, "ln -sf $if /dev/$of\n")
- if $of !~ /mouse/;
+ #- eg, ttySL0 is a symlink created by a daemon
+ output_with_perm("$::prefix/etc/udev/devices.d/$of.nodes", 0644, "L $of $if\n");
symlinkf($if, "$::prefix/dev/$of");
}