From 9d7ab29a86166f9639e14d3582567e640a6a61c8 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 22 Aug 2005 14:13:36 +0000 Subject: don't use a udev rule, this doesn't always work for input/mice, and never for ttySL0 --- perl-install/any.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install') 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 -- cgit v1.2.1