mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-28 17:12:22 +00:00
1. Copy modemmanager to feeds/ucentral. 2. Add function to find the device sysfs path when protocol is "wwan". 3. Call ifup when modem is ready for connection. 4. Add trigger to restart modemmanager when network uci is updated. Signed-off-by: Sebastian Huang <sebastian_huang@accton.com>
17 lines
474 B
Bash
17 lines
474 B
Bash
#!/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 "info" "${ACTION} serial interface ${DEVNAME}: event processed"
|
|
mm_report_event "${ACTION}" "${DEVNAME}" "tty" "/sys${DEVPATH}"
|