dahdi_cfg: Wait for all spans to be assigned.
When auto span assignment is disabled, it's possible that simply running # /etc/init.d/dahdi restart Will fail since dahdi_cfg can run in parallel with udev scripts that are assigning spans, which results in /etc/dahdi/system.conf describing spans that do not exist in the system. This change sets up dahdi_cfg, when run without the -C or -S options, to look in sysfs and make sure all spans for each device are assigned. dahdi_cfg will wait 5 seconds for span assignment to happen before proceeding normally. Signed-off-by: Shaun Ruffell <firstname.lastname@example.org> Acked-by: Tzafrir Cohen <email@example.com> Acked-by: Russ Meyerriecks <firstname.lastname@example.org>
Showing with 95 additions and 0 deletions