Skip to content

Instantly share code, notes, and snippets.

@lephuongbg
Created August 12, 2013 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lephuongbg/6208130 to your computer and use it in GitHub Desktop.
Save lephuongbg/6208130 to your computer and use it in GitHub Desktop.
Identify GSM modem
#!/bin/bash
modem=`dbus-send --system --print-reply --dest=org.freedesktop.ModemManager /org/freedesktop/ModemManager org.freedesktop.ModemManager.EnumerateDevices|grep "object path"`
modem=`echo $modem | sed 's/.*object path "//' | sed 's/"//'`
echo $modem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment