mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
parent
48dcdfa417
commit
89f76f19aa
9 changed files with 1192 additions and 0 deletions
18
modemmanager/files/25-modemmanager-tty
Normal file
18
modemmanager/files/25-modemmanager-tty
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
# Copyright (C) 2016 Velocloud Inc
|
||||
# Copyright (C) 2016 Aleksander Morgado <aleksander@aleksander.es>
|
||||
|
||||
# Load hotplug common utilities
|
||||
. /usr/share/ModemManager/modemmanager.common
|
||||
|
||||
# We require a device name
|
||||
[ -n "$DEVNAME" ] || exit
|
||||
[ -d /sys${DEVPATH} ] || exit
|
||||
[ -n "$(echo ${DEVPATH} | grep -i sqm)" ] && exit
|
||||
|
||||
# Always make sure the rundir exists
|
||||
mkdir -m 0755 -p "${MODEMMANAGER_RUNDIR}"
|
||||
|
||||
# Report TTY
|
||||
mm_log "${ACTION} serial interface ${DEVNAME}: event processed"
|
||||
mm_report_event "${ACTION}" "${DEVNAME}" "tty" "/sys${DEVPATH}"
|
Loading…
Add table
Add a link
Reference in a new issue