2013-10-21 15:03:26 +00:00
|
|
|
|
|
|
|
ACTION!="add", GOTO="dahdi_add_end"
|
|
|
|
|
2011-10-06 19:03:00 +00:00
|
|
|
# DAHDI devices with ownership/permissions for running as non-root
|
|
|
|
SUBSYSTEM=="dahdi", OWNER="asterisk", GROUP="asterisk", MODE="0660"
|
2013-10-15 18:01:01 +00:00
|
|
|
|
|
|
|
# Backward compat names: /dev/dahdi/<channo>
|
|
|
|
SUBSYSTEM=="dahdi_channels", SYMLINK+="dahdi/%m"
|
|
|
|
|
2013-10-21 15:04:39 +00:00
|
|
|
# Add persistant names as well
|
2013-12-11 10:35:49 +00:00
|
|
|
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"
|
2013-10-21 15:04:39 +00:00
|
|
|
|
2013-10-21 15:03:26 +00:00
|
|
|
LABEL="dahdi_add_end"
|
|
|
|
|
|
|
|
# hotplug scripts
|
2013-12-12 13:45:14 +00:00
|
|
|
SUBSYSTEM=="dahdi_devices", RUN+="%E{DAHDI_TOOLS_ROOTDIR}/usr/share/dahdi/dahdi_handle_device"
|
|
|
|
SUBSYSTEM=="dahdi_spans", RUN+="%E{DAHDI_TOOLS_ROOTDIR}/usr/share/dahdi/dahdi_span_config"
|