[Pkg-voip-commits] [dahdi-tools] 137/285: dahdi.rules: add persistent channel names as well

tzafrir at debian.org tzafrir at debian.org
Thu Jul 7 19:18:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository dahdi-tools.

commit 791a596c07622ae1fc96ff36a0e0941142a9e20e
Author: Oron Peled <oron.peled at xorcom.com>
Date:   Mon Oct 21 18:04:39 2013 +0300

    dahdi.rules: add persistent channel names as well
    
    Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
    Acked-by: Russ Meyerriecks <rmeyerriecks at digium.com>
---
 dahdi.rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dahdi.rules b/dahdi.rules
index 392a751..e2a629f 100644
--- a/dahdi.rules
+++ b/dahdi.rules
@@ -7,6 +7,10 @@ SUBSYSTEM=="dahdi",		OWNER="asterisk", GROUP="asterisk", MODE="0660"
 # Backward compat names: /dev/dahdi/<channo>
 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"
+
 LABEL="dahdi_add_end"
 
 # hotplug scripts

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git



More information about the Pkg-voip-commits mailing list