dahdi.rules: Replace SYSFS with ATTRS
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Wed, 11 Dec 2013 10:35:49 +0000 (12:35 +0200)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Thu, 12 Dec 2013 21:47:50 +0000 (23:47 +0200)
SYSFS has been deprecated. Use ATTRS.

Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Acked-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>

dahdi.rules

index df79ce7..91128fb 100644 (file)
@@ -8,8 +8,8 @@ SUBSYSTEM=="dahdi",             OWNER="asterisk", GROUP="asterisk", MODE="0660"
 SUBSYSTEM=="dahdi_channels",   SYMLINK+="dahdi/%m"
 
 # Add persistant names as well
-SUBSYSTEM=="dahdi_channels", SYSFS{hardware_id}!="",   SYMLINK+="dahdi/devices/%s{hardware_id}/%s{local_spanno}/%n"
-SUBSYSTEM=="dahdi_channels", SYSFS{location}!="",      SYMLINK+="dahdi/devices/@%s{location}/%s{local_spanno}/%n"
+SUBSYSTEM=="dahdi_channels", ATTRS{hardware_id}!="",   SYMLINK+="dahdi/devices/%s{hardware_id}/%s{local_spanno}/%n"
+SUBSYSTEM=="dahdi_channels", ATTRS{location}!="",      SYMLINK+="dahdi/devices/@%s{location}/%s{local_spanno}/%n"
 
 LABEL="dahdi_add_end"