mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Ignore SQM interface for ModemManager
This commit is contained in:
parent
8cd4cc8b49
commit
b452824f4a
3 changed files with 6 additions and 1 deletions
|
@ -9,7 +9,8 @@
|
|||
[ -n "${INTERFACE}" ] || exit
|
||||
|
||||
[ -n "$(echo ${INTERFACE} | grep -i sqm)" ] && exit
|
||||
[ ! -f /sys${DEVPATH} ] && exit
|
||||
[ -d /sys${DEVPATH} ] || exit
|
||||
[ -n "$(echo ${DEVPATH} | grep -i sqm)" ] && exit
|
||||
|
||||
# Always make sure the rundir exists
|
||||
mkdir -m 0755 -p "${MODEMMANAGER_RUNDIR}"
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
|
||||
# We require a device name
|
||||
[ -n "$DEVNAME" ] || exit
|
||||
[ -d /sys${DEVPATH} ] || exit
|
||||
[ -n "$(echo ${DEVPATH} | grep -i sqm)" ] && exit
|
||||
|
||||
# Always make sure the rundir exists
|
||||
mkdir -m 0755 -p "${MODEMMANAGER_RUNDIR}"
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
# want to process specific interface removal events.
|
||||
[ "$ACTION" = remove ] || exit
|
||||
[ -z "${INTERFACE}" ] || exit
|
||||
[ -d /sys${DEVPATH} ] || exit
|
||||
[ -n "$(echo ${DEVPATH} | grep -i sqm)" ] && exit
|
||||
|
||||
# Load common utilities
|
||||
. /usr/share/ModemManager/modemmanager.common
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue