[Pkg-voip-commits] [dahdi-tools] 160/285: dahdi_handle_device: Auto assign only the device being added.
    tzafrir at debian.org 
    tzafrir at debian.org
       
    Thu Jul  7 19:18:49 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 a4f79134c959830bfcb869068cd1cf4891f00527
Author: Shaun Ruffell <sruffell at digium.com>
Date:   Wed Jan 8 18:14:05 2014 -0600
    dahdi_handle_device: Auto assign only the device being added.
    
    Eliminates trying to add spans multiple times as seen below:
    
        'dahdi_handle_device'[21993]: add: /devices/dynamic:loc:1
        'dahdi_handle_device'[21991]: add: /devices/dynamic:loc:0
        'dahdi_handle_device'[22001]: auto-assign /sys/bus/dahdi_devices/devices/dynamic:loc:0
        'dahdi_handle_device'[22001]: auto-assign /sys/bus/dahdi_devices/devices/dynamic:loc:1
        'dahdi_handle_device'[21999]: auto-assign /sys/bus/dahdi_devices/devices/dynamic:loc:0
        'dahdi_handle_device'[21999]: auto-assign /sys/bus/dahdi_devices/devices/dynamic:loc:1
        kernel: [ 3348.312534] dahdi_devices dynamic:loc:0: local span 1 is already assigned span 1
        kernel: [ 3348.312552] dahdi_devices dynamic:loc:1: local span 1 is already assigned span 2
    
    Signed-off-by: Shaun Ruffell <sruffell at digium.com>
    Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
---
 dahdi_handle_device | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dahdi_handle_device b/dahdi_handle_device
index d475511..34af0c3 100755
--- a/dahdi_handle_device
+++ b/dahdi_handle_device
@@ -69,7 +69,7 @@ add)
 			dahdi_span_assignments add "/sys$DEVPATH"
 		else
 			# No configuration. No order guaranteed
-			dahdi_span_assignments auto
+			dahdi_span_assignments auto "/sys$DEVPATH"
 		fi
 	) 2>&1 < /dev/null | $LOGGER &
 	;;
-- 
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