From a4f79134c959830bfcb869068cd1cf4891f00527 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Wed, 8 Jan 2014 18:14:05 -0600 Subject: [PATCH] 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 Acked-by: Tzafrir Cohen --- 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 & ;;