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:
parent
67c1ef2c9e
commit
efa9d527a1
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue