name_cdrom.pl revision a8a614a7018918e987585c2d07189024c640cb3a
# Horrible but funny script that shows how flexible udev can really be
# This is to be executed by udev with the following rule:
# KERNEL="hd*[!0-9]|sr*", PROGRAM="name_cdrom.pl $tempnode", SYMLINK+="%c"
use strict;
use warnings;
# following variables just need to be declared if different from defaults
my %config;
exit 1;
}
# print out our cd name
print "$cd{artist}-$cd{title}\n";
exit 0;