summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-07-31 08:02:52 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-07-31 08:02:52 +0000
commit786dc06dcee37d35ef89a23069716c5b7cbcf707 (patch)
tree7dbf2a049335900f087905bb560fbac2baeea661
parentc9540645115a4f2c73a955c0ec0eafd2850cfd46 (diff)
downloaddrakx-backup-do-not-use-786dc06dcee37d35ef89a23069716c5b7cbcf707.tar
drakx-backup-do-not-use-786dc06dcee37d35ef89a23069716c5b7cbcf707.tar.gz
drakx-backup-do-not-use-786dc06dcee37d35ef89a23069716c5b7cbcf707.tar.bz2
drakx-backup-do-not-use-786dc06dcee37d35ef89a23069716c5b7cbcf707.tar.xz
drakx-backup-do-not-use-786dc06dcee37d35ef89a23069716c5b7cbcf707.zip
(devfssymlinkf) do not write rules conflicting with udev ones (blacklist dvd
and mouse, only accepting modem for now)
-rw-r--r--perl-install/any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 1cd0f4e7a..e18dba09a 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -918,7 +918,7 @@ 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/$of.rules", qq(KERNEL="$if", SYMLINK="$of"\n));
+ output_p("$::prefix/etc/udev/rules.d/$of.rules", qq(KERNEL="$if", SYMLINK="$of"\n)) if $of =~ /mouse|dvd/;
#- 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();