[Pkg-voip-commits] [dahdi-tools] 136/285: dahdi.rules: don't process "add" events unless needed

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 d145364c0087c0071e224e41797043d429b60bf7
Author: Oron Peled <oron.peled at xorcom.com>
Date:   Mon Oct 21 18:03:26 2013 +0300

    dahdi.rules: don't process "add" events unless needed
    
    Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
    Acked-by: Russ Meyerriecks <rmeyerriecks at digium.com>
---
 dahdi.rules | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dahdi.rules b/dahdi.rules
index f983705..392a751 100644
--- a/dahdi.rules
+++ b/dahdi.rules
@@ -1,9 +1,14 @@
+
+ACTION!="add",	GOTO="dahdi_add_end"
+
 # DAHDI devices with ownership/permissions for running as non-root
 SUBSYSTEM=="dahdi",		OWNER="asterisk", GROUP="asterisk", MODE="0660"
 
 # Backward compat names: /dev/dahdi/<channo>
 SUBSYSTEM=="dahdi_channels",	SYMLINK+="dahdi/%m"
 
-# hotplug support
+LABEL="dahdi_add_end"
+
+# hotplug scripts
 SUBSYSTEM=="dahdi_devices",	RUN="%E{DAHDI_TOOLS_ROOTDIR}/usr/share/dahdi/handle_device"
 SUBSYSTEM=="dahdi_spans",	RUN="%E{DAHDI_TOOLS_ROOTDIR}/usr/share/dahdi/span_config"

-- 
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