Make udev run dahdi_cfg on each device:
authorOron Peled <oron.peled@xorcom.com>
Thu, 6 Oct 2011 19:03:03 +0000 (21:03 +0200)
committerRuss Meyerriecks <rmeyerriecks@digium.com>
Fri, 24 May 2013 21:58:15 +0000 (16:58 -0500)
commitba3289ac9af880aa3a7ff5010433bb3d0d3badff
treeb091146c74b2391a131c9013ae75c3e2bf1652d4
parent79fff3e278ae2a20c17dff32227baa0627593c97
Make udev run dahdi_cfg on each device:

 * New script: dahdi_cfg_device_args:
   - Just like span_assignments, span_types: may be given
     one or more sysfs devpath's
   - Output the required options for dahdi_cfg. E.g:
       "-S 8 -C 15-28"
   - This may be passed (with any other wanted options)
     to the new dahdi_cfg (which supports '-S' and '-C')

 * Use dahdi_cfg_device_args in handle_device so we configure
   each span from udev.

Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Signed-off-by: Russ Meyerriecks <rmeyerriecks@digium.com>
dahdi_cfg_device_args [new file with mode: 0755]
handle_device