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:
commit
594fdeb88b
1 changed files with 3 additions and 0 deletions
|
@ -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}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue