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@digium.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
This commit is contained in:
parent
d8074f434f
commit
a4f79134c9
@ -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 &
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user