You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
426 B

  1. #!/bin/sh
  2. # Copyright (C) 2019 Aleksander Morgado <aleksander@aleksander.es>
  3. # We need to process only full USB device removal events, we don't
  4. # want to process specific interface removal events.
  5. [ "$ACTION" = remove ] || exit
  6. [ -z "${INTERFACE}" ] || exit
  7. # Load common utilities
  8. . /usr/share/ModemManager/modemmanager.common
  9. mm_clear_modem_wait_status "/sys${DEVPATH}"
  10. mm_cleanup_interface_by_sysfspath "/sys${DEVPATH}"