2013-10-21 23:03:26 +08:00
|
|
|
|
|
|
|
ACTION!="add", GOTO="dahdi_add_end"
|
|
|
|
|
2011-10-07 03:03:00 +08:00
|
|
|
# DAHDI devices with ownership/permissions for running as non-root
|
|
|
|
SUBSYSTEM=="dahdi", OWNER="asterisk", GROUP="asterisk", MODE="0660"
|
2013-10-16 02:01:01 +08:00
|
|
|
|
|
|
|
# Backward compat names: /dev/dahdi/<channo>
|
|
|
|
SUBSYSTEM=="dahdi_channels", SYMLINK+="dahdi/%m"
|
|
|
|
|
2013-10-21 23:04:39 +08:00
|
|
|
# Add persistant names as well
|
2013-12-11 18:35:49 +08: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 23:04:39 +08:00
|
|
|
|
2013-10-21 23:03:26 +08:00
|
|
|
LABEL="dahdi_add_end"
|
|
|
|
|
|
|
|
# hotplug scripts
|
2013-12-12 21:45:14 +08: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"
|