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

Merge pull request #121 from Ysurac/develop

sync
This commit is contained in:
suyuan 2021-04-23 02:17:26 +08:00 committed by GitHub
commit e8a12deae8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View file

@ -181,6 +181,10 @@ start_service() {
EOF
/etc/init.d/rpcd restart 2>&1 >/dev/null
fi
if [ "$(pgrep ModemManager)" = "" ] && [ -f /etc/init.d/modemmanager ] && [ -n "$(uci -q show network | grep modemmanager)" ]; then
_log "Can't find ModemManager, start it..."
/etc/init.d/modemmanager restart
fi
}
stop_service() {