2014-01-16 18:31:17 +08:00
|
|
|
#! /bin/sh
|
|
|
|
|
2014-03-09 20:03:00 +08:00
|
|
|
case "$ACTION" in
|
|
|
|
add)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
exit 0
|
|
|
|
esac
|
|
|
|
|
2014-01-16 18:31:17 +08:00
|
|
|
if [ -r "$DAHDICONFDIR/assigned-spans.conf" ]; then
|
|
|
|
dahdi_span_assignments add "/sys$DEVPATH"
|
|
|
|
else
|
|
|
|
# No configuration. No order guaranteed
|
|
|
|
dahdi_span_assignments auto "/sys$DEVPATH"
|
|
|
|
fi
|