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

合并Ysurac/develop的拉取请求#126

检查ModemManager有接口的sysfs
This commit is contained in:
suyuan 2021-04-24 15:03:01 +08:00 committed by GitHub
commit 594fdeb88b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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