1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2021-04-24 08:57:05 +02:00
parent 02d23b046d
commit 0a87330bef

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}"