diff --git a/hotplug/dahdi_handle_device b/hotplug/dahdi_handle_device index 52ce9c2..30329bd 100755 --- a/hotplug/dahdi_handle_device +++ b/hotplug/dahdi_handle_device @@ -77,8 +77,9 @@ add) run_parts 2>&1 < /dev/null | $LOGGER & ;; remove) - # Nothing to do yet... echo "$ACTION: $DEVPATH" | $LOGGER + # Background run -- don't block udev + run_parts 2>&1 < /dev/null | $LOGGER & ;; *) echo "UNHANDLED: $ACTION: $DEVPATH" | $LOGGER diff --git a/hotplug/handle_device.d/10-span-types b/hotplug/handle_device.d/10-span-types index d840c3d..6b78021 100755 --- a/hotplug/handle_device.d/10-span-types +++ b/hotplug/handle_device.d/10-span-types @@ -1,5 +1,12 @@ #! /bin/sh +case "$ACTION" in +add) + ;; +*) + exit 0 +esac + if [ -r "$DAHDICONFDIR/span-types.conf" ]; then dahdi_span_types set "/sys$DEVPATH" fi diff --git a/hotplug/handle_device.d/20-span-assignments b/hotplug/handle_device.d/20-span-assignments index f078aca..bfb724b 100755 --- a/hotplug/handle_device.d/20-span-assignments +++ b/hotplug/handle_device.d/20-span-assignments @@ -1,5 +1,12 @@ #! /bin/sh +case "$ACTION" in +add) + ;; +*) + exit 0 +esac + if [ -r "$DAHDICONFDIR/assigned-spans.conf" ]; then dahdi_span_assignments add "/sys$DEVPATH" else