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

@ -6,6 +6,7 @@
# If there is no interface that use modemmanager, exit
#[ -z "$(uci -q show network | grep modemmanager)" ] && exit
[ "$(uci -q get openmptcprouter.settings.modemmanager)" = "0" ] && exit
. /lib/functions.sh
. /lib/netifd/netifd-proto.sh
@ -23,7 +24,7 @@ MODEMMANAGER_EVENTS_CACHE="${MODEMMANAGER_RUNDIR}/events.cache"
# Common logging
mm_log() {
[ -n "$(uci -q show network | grep modemmanager)" ] && logger -t "ModemManager" "hotplug: $*"
logger -t "ModemManager" "hotplug: $*"
}
################################################################################