networkmanager: fix detection of slow initialization modems

Some modems (e.g. the XBee Cellular LTE Cat 1) have a long initilization
process and are not available when ModemManager tries to detect them
on boot.

For those modems schedule a rescan a bit later after NetworkManager has
been launched, so they are detected properly.

https://jira.digi.com/browse/DEL-4661

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2017-07-26 11:09:28 +02:00
parent ae6aa1ee25
commit 087f147b5d
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ case "${1}" in
start)
mkdir -p /var/run/NetworkManager
echo -n "Starting ${DESC}: "
${DAEMON}
${DAEMON} && (sleep 40 && mmcli --scan-modems 1>/dev/null 2>&1) &
echo "done"
;;
stop)