Weblog entry #2 for shortpath
Comments on this Entry
[ Send Message | View dkg's Scratchpad | View Weblogs ]
This apparently supercedes ifrename and all the other similar programs, so you should get rid of those as long as you're running udev.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
Also note that if you are running udev on Sarge and upgrade to Etch, the way the syntax is intepreted changes, so old rules may stop working! It's easy to fix, but it can catch you out when it happens the first time.
--
"It's Not Magic, It's Work"
Adam
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
BUS="scsi", SYSFS{model}="Camera KD-25", SYMLINK="konica_camera"
BUS="scsi", SYSFS{vendor}="WDC AC34", SYSFS{model}="000L", SYMLINK="icy_box"
BUS="scsi", SYSFS{vendor}="Easy", SYSFS{model}="Disk", SYMLINK="easy_disk"
But not in Etch, you have to say:
BUS=="scsi", SYSFS{model}=="Camera KD-25", SYMLINK="konica_camera"
BUS=="scsi", SYSFS{vendor}=="WDC AC34", SYSFS{model}=="000L", SYMLINK="icy_box"
BUS=="scsi", SYSFS{vendor}=="Easy", SYSFS{model}=="Disk", SYMLINK="easy_disk"
Notice the difference in the use of the equals sign "=". On Sarge you use a single "=" for testing and assignment. In Etch you use double-equals "==" for the test and only a single equals for the assignment.
I followed the advice here:
http://www.debian-administration.org/articles/126
which worked okay in Sarge, and then at some point during Etch's development the version of udev jumped up and it stopped working. After a lot of messing about I realised that the syntax has either changed or more likley got stricter.
--
"It's Not Magic, It's Work"
Adam
[ Parent | Reply to this comment ]