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

合并拉取请求#128

Ignore SQM interface for ModemManager
This commit is contained in:
suyuan 2021-04-25 10:00:16 +08:00 committed by GitHub
commit 19ae6a2ae1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View file

@ -9,7 +9,8 @@
[ -n "${INTERFACE}" ] || exit [ -n "${INTERFACE}" ] || exit
[ -n "$(echo ${INTERFACE} | grep -i sqm)" ] && 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 # Always make sure the rundir exists
mkdir -m 0755 -p "${MODEMMANAGER_RUNDIR}" mkdir -m 0755 -p "${MODEMMANAGER_RUNDIR}"

View file

@ -7,6 +7,8 @@
# We require a device name # We require a device name
[ -n "$DEVNAME" ] || exit [ -n "$DEVNAME" ] || exit
[ -d /sys${DEVPATH} ] || exit
[ -n "$(echo ${DEVPATH} | grep -i sqm)" ] && exit
# Always make sure the rundir exists # Always make sure the rundir exists
mkdir -m 0755 -p "${MODEMMANAGER_RUNDIR}" mkdir -m 0755 -p "${MODEMMANAGER_RUNDIR}"

View file

@ -5,6 +5,8 @@
# want to process specific interface removal events. # want to process specific interface removal events.
[ "$ACTION" = remove ] || exit [ "$ACTION" = remove ] || exit
[ -z "${INTERFACE}" ] || exit [ -z "${INTERFACE}" ] || exit
[ -d /sys${DEVPATH} ] || exit
[ -n "$(echo ${DEVPATH} | grep -i sqm)" ] && exit
# Load common utilities # Load common utilities
. /usr/share/ModemManager/modemmanager.common . /usr/share/ModemManager/modemmanager.common