summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-08-22 14:13:36 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-08-22 14:13:36 +0000
commit9d7ab29a86166f9639e14d3582567e640a6a61c8 (patch)
treeabdd45429f5d7953cfd192d427f4fbf19a809f61 /perl-install/any.pm
parent78d8dea90bafc83e151a343f71654df458c55b07 (diff)
downloaddrakx-9d7ab29a86166f9639e14d3582567e640a6a61c8.tar
drakx-9d7ab29a86166f9639e14d3582567e640a6a61c8.tar.gz
drakx-9d7ab29a86166f9639e14d3582567e640a6a61c8.tar.bz2
drakx-9d7ab29a86166f9639e14d3582567e640a6a61c8.tar.xz
drakx-9d7ab29a86166f9639e14d3582567e640a6a61c8.zip
don't use a udev rule, this doesn't always work for input/mice, and never for ttySL0
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 5a6ed03fc..5f0512d11 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -916,7 +916,9 @@ 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]/;
- output_p("$::prefix/etc/udev/rules.d/20-$of.rules", qq(KERNEL=="$if", SYMLINK="$of"\n))
+ #- 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 !~ /dvd/;
#- when creating a symlink on the system, use devfs name if devfs is mounted