summaryrefslogtreecommitdiff
path: root/extras/name_cdrom.pl
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-02-17 01:29:03 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:28 -0700
commit88f09368b3dc2d17cf2ce1a4841e42a120a4dbb9 (patch)
tree788fc630fa0a494b10d9906277fe6fd949706b38 /extras/name_cdrom.pl
parent16378373cb9d96e5d424921806ff71f218e92694 (diff)
[PATCH] udev - switch callout part selector to {attribute}
Here we change the magic callout part number selector to the new atribute syntax. The syntax to select the second part of the callout string: '%2c' is now '%c{2}' I think it's more clear and we no longer misuse the length argument. The old syntax is still supported, but we should remove it some time in the future.
Diffstat (limited to 'extras/name_cdrom.pl')
-rw-r--r--extras/name_cdrom.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/name_cdrom.pl b/extras/name_cdrom.pl
index 3a4772e6d9..766f6f366a 100644
--- a/extras/name_cdrom.pl
+++ b/extras/name_cdrom.pl
@@ -2,7 +2,7 @@
# a horribly funny script that shows how flexible udev can really be
# This is to be executed by udev with the following rules:
-# KERNEL="[hs]d[a-z]", PROGRAM="name_cdrom.pl %M %m", NAME="%1c", SYMLINK="cdrom"
+# KERNEL="[hs]d[a-z]", PROGRAM="name_cdrom.pl %M %m", NAME="%c{1}", SYMLINK="cdrom"
use strict;
use warnings;