mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +00:00
Check if interface exist in sysfs for ModemManager
This commit is contained in:
parent
02d23b046d
commit
0a87330bef
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