MM: Stop MM daemon before going to suspend

In the cc6ul we are not powering-off the supply of the XBee.
This is making that after a suspend/resume action the XBee
hangs due to ModemManager hasn't been stopped before the suspend.

Stopping ModemManager before going to suspend solves the issue.

https://onedigi.atlassian.net/browse/DEL-7701

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This commit is contained in:
Francisco Gil 2021-10-27 16:50:03 +02:00
parent 67c1ef2c9e
commit efa9d527a1
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
DAEMON="/usr/sbin/NetworkManager"
PIDFILE="/var/run/NetworkManager/NetworkManager.pid"
DESC="NetworkManager"
DAEMON_MM="/usr/sbin/ModemManager"
case "${1}" in
start)
@ -14,6 +15,7 @@ case "${1}" in
stop)
echo -n "Stopping ${DESC}: "
start-stop-daemon -K -o -q -p ${PIDFILE}
start-stop-daemon -K -o -q -x ${DAEMON_MM}
echo "done"
;;
restart)