1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Add an option to disable ModemManager

This commit is contained in:
Ycarus (Yannick Chabanois) 2021-04-22 20:20:28 +02:00
parent 7d64036e45
commit 97e104a5e5
6 changed files with 38 additions and 18 deletions

View file

@ -1313,7 +1313,7 @@ if [ "$(pgrep rpcd)" = "" ] && [ -f /etc/init.d/rpcd ]; then
sleep 5
fi
if [ "$(pgrep ModemManager)" = "" ] && [ -f /etc/init.d/modemmanager ] && [ -n "$(uci -q show network | grep modemmanager)" ]; then
if [ "$(pgrep ModemManager)" = "" ] && [ -f /etc/init.d/modemmanager ] && [ -n "$(uci -q show network | grep modemmanager)" ] && [ "$(uci -q get openmptcprouter.settings.modemmanager)" != "0" ]; then
_log "Can't find ModemManager, restart it..."
/etc/init.d/modemmanager restart
sleep 5