mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 19:11:51 +00:00
14 lines
426 B
Text
14 lines
426 B
Text
|
#!/bin/sh
|
||
|
# Copyright (C) 2019 Aleksander Morgado <aleksander@aleksander.es>
|
||
|
|
||
|
# We need to process only full USB device removal events, we don't
|
||
|
# want to process specific interface removal events.
|
||
|
[ "$ACTION" = remove ] || exit
|
||
|
[ -z "${INTERFACE}" ] || exit
|
||
|
|
||
|
# Load common utilities
|
||
|
. /usr/share/ModemManager/modemmanager.common
|
||
|
|
||
|
mm_clear_modem_wait_status "/sys${DEVPATH}"
|
||
|
mm_cleanup_interface_by_sysfspath "/sys${DEVPATH}"
|