modemmanager: add ModemManager to packages

Signed-off-by: Nicholas Smith <nicholas.smith@telcoantennas.com.au>
This commit is contained in:
Nicholas Smith
2020-01-28 11:52:04 +10:00
parent c9cf3c2778
commit cac10393e2
9 changed files with 1102 additions and 0 deletions
@@ -0,0 +1,16 @@
#!/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
# 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}"