hotplug: call handle_device.d/ actions for remove
[dahdi/tools.git] / hotplug / handle_device.d / 20-span-assignments
1 #! /bin/sh
2
3 case "$ACTION" in
4 add)
5         ;;
6 *)
7         exit 0
8 esac
9
10 if [ -r "$DAHDICONFDIR/assigned-spans.conf" ]; then
11         dahdi_span_assignments add "/sys$DEVPATH"
12 else
13         # No configuration. No order guaranteed
14         dahdi_span_assignments auto "/sys$DEVPATH"
15 fi